File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -198,15 +198,7 @@ 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 / {
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 {
201
+ location ^~ / {
210
202
proxy_pass http://localhost:8080/;
211
203
proxy_set_header Host $host;
212
204
proxy_set_header Upgrade $http_upgrade;
@@ -583,15 +575,7 @@ At this point, you should be able to access code-server via
583
575
listen [::]:80;
584
576
server_name mydomain.com;
585
577
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 {
578
+ location ^~ / {
595
579
proxy_pass http://localhost:8080/;
596
580
proxy_set_header Host $host;
597
581
proxy_set_header Upgrade $http_upgrade;
You can’t perform that action at this time.
0 commit comments