From a6df472302b704bde9a4877217d6bdd729cb262f Mon Sep 17 00:00:00 2001 From: Oliver Yuan Date: Mon, 17 Apr 2023 21:10:45 +0800 Subject: [PATCH] [IMP] Improve docker-compose.yml --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9cc4db5..ecdce96 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,11 +41,12 @@ services: - "traefik.http.routers.ospp_cloud.service=ospp_cloud" - "traefik.http.services.ospp_cloud.loadbalancer.server.port=8069" - "traefik.http.middlewares.ospp_cloud.compress=true" + - "traefik.http.services.ospp_cloud_im.loadbalancer.passHostHeader=true" - "traefik.http.routers.ospp_cloud_im.rule=Host(`${CLOUD_DOMAIN}`) && (PathPrefix(`/longpolling`) || PathPrefix(`/websocket`))" # - "traefik.http.routers.ospp_cloud_im.entrypoints=websecure" - "traefik.http.routers.ospp_cloud_im.service=ospp_cloud_im" - "traefik.http.services.ospp_cloud_im.loadbalancer.server.port=8072" - - "traefik.http.services.ospp_cloud_im.loadbalancer.passHostHeader=true" +# - "traefik.http.services.ospp_cloud_im.loadbalancer.passHostHeader=true" # - "traefik.http.middlewares.ospp_cloud_im.compress=true" # - "traefik.http.middlewares.ospp_cloud_im.headers.customrequestheaders.Upgrade=websocket" # - "traefik.http.middlewares.ospp_cloud_im.headers.customrequestheaders.Connection=Upgrade"