Open mering opened 4 weeks ago
Steps to Reproduce:
./scripts/code-server.sh --port 3000
Run an nginx proxy with the following config:
server { listen 8080; listen [::]:8080; location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; # Destination proxy_pass http://localhost:3000/; } }
When using proxy_set_header X-Forwarded-Host $host:$server_port; instead of the separte host and port headers, everything works fine.
proxy_set_header X-Forwarded-Host $host:$server_port;
I fixed this in ee80e47f084e4cab294fe15fa5ec15b7b5fc9f6c as part of #210455. If you prefer, I can move this to a separate PR.
Steps to Reproduce:
./scripts/code-server.sh --port 3000
Run an nginx proxy with the following config:
When using
proxy_set_header X-Forwarded-Host $host:$server_port;
instead of the separte host and port headers, everything works fine.