File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,15 @@ At this point, you should be able to access code-server via
198
198
listen [::]:80;
199
199
server_name mydomain.com;
200
200
201
- location ^~ / {
201
+ location / {
202
+ proxy_pass http://localhost:8080/;
203
+ proxy_set_header Host $host;
204
+ proxy_set_header Upgrade $http_upgrade;
205
+ proxy_set_header Connection upgrade;
206
+ proxy_set_header Accept-Encoding gzip;
207
+ }
208
+
209
+ location /static {
202
210
proxy_pass http://localhost:8080/;
203
211
proxy_set_header Host $host;
204
212
proxy_set_header Upgrade $http_upgrade;
@@ -575,7 +583,15 @@ At this point, you should be able to access code-server via
575
583
listen [::]:80;
576
584
server_name mydomain.com;
577
585
578
- location ^~ / {
586
+ location / {
587
+ proxy_pass http://localhost:8080/;
588
+ proxy_set_header Host $host;
589
+ proxy_set_header Upgrade $http_upgrade;
590
+ proxy_set_header Connection upgrade;
591
+ proxy_set_header Accept-Encoding gzip;
592
+ }
593
+
594
+ location /static {
579
595
proxy_pass http://localhost:8080/;
580
596
proxy_set_header Host $host;
581
597
proxy_set_header Upgrade $http_upgrade;
You can’t perform that action at this time.
0 commit comments