[英]ActiveMQ 5.15 - Change context root of web console
我正在使用 ActiveMQ 5.15,我想為 ActiveMQ web 控制台的 url 添加一個路徑元素,以便它與我在 k8s 集群中的 nginx-ingress 一起使用
例如現在是127.0.0.1:8161/admin
,但我想使用127.0.0.1:8161/activemq/admin/
。
我試圖更改jetty.xml
中的設置,但我找不到正確的 position 以輸入上下文根activemq
。
找到了:
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" />
--- 入口
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.