chore(docker): adding nginx flag to preserve ssl header

else ssl proxy pass will fail if request with ip address is blocked in
  firewall.

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-08-19 02:59:17 +02:00
parent 2232e20b4a
commit 5e40bb273a

View file

@ -9,6 +9,8 @@ location /api/ {
rewrite ^/api/(.*) /$1 break;
proxy_ssl_server_name on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
@ -24,6 +26,8 @@ location / {
proxy_intercept_errors on; # see frontend://nginx.org/en/docs/frontend/ngx_frontend_proxy_module.html#proxy_intercept_errors
error_page 404 =200 /index.html;
proxy_ssl_server_name on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";