Skip to content

Commit 5e4b47e

Browse files
authored
Update default nginx config in guide.md
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](coder#4443) [different between `$host` and `$http_host`](https://stackoverflow.com/a/76875724)
1 parent 262f66a commit 5e4b47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ At this point, you should be able to access code-server via
191191
192192
location / {
193193
proxy_pass http://localhost:8080/;
194-
proxy_set_header Host $host;
194+
proxy_set_header Host $http_host;
195195
proxy_set_header Upgrade $http_upgrade;
196196
proxy_set_header Connection upgrade;
197197
proxy_set_header Accept-Encoding gzip;

0 commit comments

Comments
 (0)