From 3dbbac97a7d312c205f9f8302b8606678e804d70 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 12 Mar 2022 21:50:16 +0100 Subject: [PATCH] Traefik v2: Don't route "/notifications/hub/negotiate" to websocket port --- Proxy-examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Proxy-examples.md b/Proxy-examples.md index b7ac550..8455bee 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -478,7 +478,7 @@ labels: - traefik.http.routers.bitwarden-ui.rule=Host(`bitwarden.domain.tld`) - traefik.http.routers.bitwarden-ui.service=bitwarden-ui - traefik.http.services.bitwarden-ui.loadbalancer.server.port=80 - - traefik.http.routers.bitwarden-websocket.rule=Host(`bitwarden.domain.tld`) && Path(`/notifications/hub`) + - traefik.http.routers.bitwarden-websocket.rule=Host(`bitwarden.domain.tld`) && Path(`/notifications/hub`) && !Path(`/notifications/hub/negotiate`) - traefik.http.routers.bitwarden-websocket.service=bitwarden-websocket - traefik.http.services.bitwarden-websocket.loadbalancer.server.port=3012 ``` @@ -502,11 +502,11 @@ labels: - traefik.http.routers.bitwarden-ui-http.middlewares=redirect-https - traefik.http.routers.bitwarden-ui-http.service=bitwarden-ui - traefik.http.services.bitwarden-ui.loadbalancer.server.port=80 - - traefik.http.routers.bitwarden-websocket-https.rule=Host(`bitwarden.domain.tld`) && Path(`/notifications/hub`) + - traefik.http.routers.bitwarden-websocket-https.rule=Host(`bitwarden.domain.tld`) && Path(`/notifications/hub`) && !Path(`/notifications/hub/negotiate`) - traefik.http.routers.bitwarden-websocket-https.entrypoints=websecure - traefik.http.routers.bitwarden-websocket-https.tls=true - traefik.http.routers.bitwarden-websocket-https.service=bitwarden-websocket - - traefik.http.routers.bitwarden-websocket-http.rule=Host(`bitwarden.domain.tld`) && Path(`/notifications/hub`) + - traefik.http.routers.bitwarden-websocket-http.rule=Host(`bitwarden.domain.tld`) && Path(`/notifications/hub`) && !Path(`/notifications/hub/negotiate`) - traefik.http.routers.bitwarden-websocket-http.entrypoints=web - traefik.http.routers.bitwarden-websocket-http.middlewares=redirect-https - traefik.http.routers.bitwarden-websocket-http.service=bitwarden-websocket