|
|
|
@ -74,6 +74,8 @@ server {
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
# Make sure to hardcoded set to https. As kubernetes is proxying based on http from the ingress
|
|
|
|
|
# Else TUSD will redirect incorrect http hosts
|
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
|
|
|
|
|
|
proxy_pass http://localhost:1080;
|
|
|
|
@ -81,10 +83,6 @@ server {
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
|
|
|
|
# proxy_redirect http://localhost/ https://localhost:1090/;
|
|
|
|
|
# proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ~ /files {
|
|
|
|
@ -99,6 +97,8 @@ server {
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
# Make sure to hardcoded set to https. As kubernetes is proxying based on http from the ingress
|
|
|
|
|
# Else TUSD will redirect incorrect http hosts
|
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
|
|
|
|
|
|
proxy_pass http://localhost:1080;
|
|
|
|
|