Update nginx.conf
Browse files- nginx.conf +2 -3
nginx.conf
CHANGED
@@ -80,15 +80,14 @@ http {
|
|
80 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
81 |
}
|
82 |
|
83 |
-
location
|
|
|
84 |
proxy_http_version 1.1;
|
85 |
proxy_set_header Upgrade $http_upgrade;
|
86 |
proxy_set_header Connection "Upgrade";
|
87 |
proxy_set_header Host $host;
|
88 |
proxy_read_timeout 86400;
|
89 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
90 |
-
proxy_redirect off;
|
91 |
-
proxy_pass http://127.0.0.1:5050;
|
92 |
}
|
93 |
|
94 |
error_page 502 = /codeserver/;
|
|
|
80 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
81 |
}
|
82 |
|
83 |
+
location /codeserver/ {
|
84 |
+
proxy_pass http://127.0.0.1:5050/;
|
85 |
proxy_http_version 1.1;
|
86 |
proxy_set_header Upgrade $http_upgrade;
|
87 |
proxy_set_header Connection "Upgrade";
|
88 |
proxy_set_header Host $host;
|
89 |
proxy_read_timeout 86400;
|
90 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
91 |
}
|
92 |
|
93 |
error_page 502 = /codeserver/;
|