[英]ActiveMQ 5.15 - Change context root of web console
I'm using ActiveMQ 5.15, and I want to add a path-element to the url for the ActiveMQ web console so it works with my nginx-ingress in a k8s cluster我正在使用 ActiveMQ 5.15,我想为 ActiveMQ web 控制台的 url 添加一个路径元素,以便它与我在 k8s 集群中的 nginx-ingress 一起使用
For example it is now 127.0.0.1:8161/admin
, but I want to use 127.0.0.1:8161/activemq/admin/
.例如现在是
127.0.0.1:8161/admin
,但我想使用127.0.0.1:8161/activemq/admin/
。
I tried to change the settings in jetty.xml
, but I couldn't find the correct position for entering a context-root activemq
.我试图更改
jetty.xml
中的设置,但我找不到正确的 position 以输入上下文根activemq
。
Found it:找到了:
conf/jetty.xml: just edit pathelement to /activemq/admin conf/jetty.xml:只需将路径元素编辑到 /activemq/admin
<bean class="org.eclipse.jetty.webapp.WebAppContext">
<property name="contextPath" value="/activemq/admin" />
<property name="resourceBase" value="${activemq.home}/webapps/admin" />
<property name="logUrlOnStart" value="true" />
--- ingress --- 入口
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: activemq
name: activemq-ingress
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: someip.linode.com
http:
paths:
- path: /activemq
pathType: ImplementationSpecific
backend:
service:
name: activemq-service
port:
number: 8161
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.