4 changes: 4 additions & 0 deletions 4 docker/nginx.conf Original file line numberDiff line numberDiff line change @@ -27,6 +27,10 @@ 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-Proto...
I enableduse-forwarded-headersand expected this to make nginx-ingress pass-through the headers from the GCP Load balancer and explicitly not make any additions or changes to the X-Forwarded-* headers, but that's not true, it still appended the x-Forwarded-Port header. In the end, I did ...
I can get the correct behavior by setting the nginx header as: proxy_set_header X-Forwarded-Host $host:$server_port; and disablingUSE_X_FORWARDED_PORT. I take it thatX-Forwarded-Portis not popular, so maybe this bug is not worth fixing, but I will update my PR with a more explicit ...
version:'2'services:nginx:container_name:nginxrestart:alwaysimage:nginxports: -"29000:7777"volumes: -"./www:/usr/share/nginx/html"-"./conf:/etc/nginx/"-"./logs:/var/log/nginx" server { listen 7777; listen [::]:7777; server_name localhost; #access_log /var/log/nginx/host.access.lo...