diff --git a/docker/include/proxy_pass.conf b/docker/include/proxy_pass.conf index a154c8c..7577d16 100644 --- a/docker/include/proxy_pass.conf +++ b/docker/include/proxy_pass.conf @@ -6,6 +6,7 @@ proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Upgrade $http_upgrade; +proxy_set_header Connection $connection_upgrade; proxy_ignore_headers Expires; proxy_ignore_headers X-Accel-Expires; diff --git a/docker/nginx.conf b/docker/nginx.conf index 2288c5f..f95770c 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -29,6 +29,11 @@ http { } } + map $http_upgrade $connection_upgrade { + default upgrade; + '' close; + } + upstream jproxy { server jproxy:8000; }