Update Traefik configuration to include MQTT entry point and adjust routing rules

This commit is contained in:
2024-04-29 22:09:17 +08:00
parent f751df4646
commit 989013c907
+3 -4
View File
@@ -227,7 +227,7 @@ http:
# service: emqx-mqtt-socket # service: emqx-mqtt-socket
mqtt-ws-http-router: mqtt-ws-http-router:
rule: "Host(`mqttx.furyhawk.lol`)" rule: "Host(`mqtt.furyhawk.lol`, `mqttx.furyhawk.lol`)"
entryPoints: entryPoints:
- web-socket - web-socket
middlewares: middlewares:
@@ -237,14 +237,13 @@ http:
certResolver: letsencrypt certResolver: letsencrypt
mqtt-wss-https-router: mqtt-wss-https-router:
rule: "Host(`mqttx.furyhawk.lol`)" rule: "Host(`mqtt.furyhawk.lol`, `mqttx.furyhawk.lol`)"
entryPoints: entryPoints:
- web-socket-secure - web-socket-secure
middlewares: middlewares:
- csrf - csrf
service: emqx-web-socket-secure service: emqx-web-socket-secure
tls: tls: {}
certResolver: letsencrypt
mqttx-router: mqttx-router:
rule: "Host(`mqttx.furyhawk.lol`)" rule: "Host(`mqttx.furyhawk.lol`)"