Skip to content

Commit

Permalink
Update default nginx config in guide.md (#6471)
Browse files Browse the repository at this point in the history
update nginx config to avoid wss error when expose code-server using a custom domain and a custom port via nginx.

see also: 
[issue of code-server](#4443)
[different between `$host` and `$http_host`](https://stackoverflow.com/a/76875724)
  • Loading branch information
liuxhit authored Oct 4, 2023
1 parent c095c26 commit db9f678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ At this point, you should be able to access code-server via
location / {
proxy_pass http://localhost:8080/;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
Expand Down

0 comments on commit db9f678

Please sign in to comment.