Skip to content

Commit cb5286a

Browse files
author
Sim
authored
basically duplicating block is not working
1 parent d0bd668 commit cb5286a

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

docs/guide.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,7 @@ At this point, you should be able to access code-server via
198198
listen [::]:80;
199199
server_name mydomain.com;
200200
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 ^~ / {
210202
proxy_pass http://localhost:8080/;
211203
proxy_set_header Host $host;
212204
proxy_set_header Upgrade $http_upgrade;
@@ -583,15 +575,7 @@ At this point, you should be able to access code-server via
583575
listen [::]:80;
584576
server_name mydomain.com;
585577
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 ^~ / {
595579
proxy_pass http://localhost:8080/;
596580
proxy_set_header Host $host;
597581
proxy_set_header Upgrade $http_upgrade;

0 commit comments

Comments
 (0)