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:
parent
2232e20b4a
commit
5e40bb273a
1 changed files with 4 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue