File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ ENV \
183183 MODSEC_UPLOAD_KEEP_FILES=Off \
184184 NGINX_ALWAYS_TLS_REDIRECT=off \
185185 NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx \
186+ NGINX_X_FORWARDED_PORT='$server_port' \
186187 NGINX_X_FORWARDED_PROTO='$scheme' \
187188 PORT=8080 \
188189 PROXY_SSL_CERT_FILE=/etc/nginx/conf/proxy.crt \
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ ENV \
184184 MODSEC_UPLOAD_KEEP_FILES=Off \
185185 NGINX_ALWAYS_TLS_REDIRECT=off \
186186 NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx \
187+ NGINX_X_FORWARDED_PORT='$server_port' \
187188 NGINX_X_FORWARDED_PROTO='$scheme' \
188189 PORT=8080 \
189190 PROXY_SSL_CERT_FILE=/etc/nginx/conf/proxy.crt \
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ proxy_set_header Upgrade $http_upgrade;
44proxy_set_header Connection $connection_upgrade;
55proxy_set_header ${REAL_IP_PROXY_HEADER} $remote_addr;
66proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
7- proxy_set_header X-Forwarded-Port $server_port ;
7+ proxy_set_header X-Forwarded-Port ${NGINX_X_FORWARDED_PORT} ;
88proxy_set_header X-Forwarded-Proto ${NGINX_X_FORWARDED_PROTO};
99
1010proxy_http_version 1.1;
You can’t perform that action at this time.
0 commit comments