justest commited on
Commit
9eb823d
·
1 Parent(s): fb34c49

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +13 -3
nginx.conf CHANGED
@@ -70,7 +70,7 @@ http {
70
 
71
  root /var/www/example.com;
72
  index index.html;
73
- location /codeserver/ {
74
  proxy_http_version 1.1;
75
  proxy_set_header Upgrade $http_upgrade;
76
  proxy_set_header Connection "Upgrade";
@@ -78,11 +78,21 @@ http {
78
  proxy_read_timeout 86400;
79
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
80
  proxy_redirect off;
81
- rewrite ^/codeserver/(.*) /$1 break;
82
  proxy_pass http://127.0.0.1:5050;
83
  }
84
 
85
- error_page 502 = /codeserver;
 
 
 
 
 
 
 
 
 
 
 
86
  location / {
87
  proxy_pass http://127.0.0.1:5050;
88
  proxy_http_version 1.1;
 
70
 
71
  root /var/www/example.com;
72
  index index.html;
73
+ location /stable-ffbec093603a4e433a4668e4acd2706f07657159/ {
74
  proxy_http_version 1.1;
75
  proxy_set_header Upgrade $http_upgrade;
76
  proxy_set_header Connection "Upgrade";
 
78
  proxy_read_timeout 86400;
79
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
80
  proxy_redirect off;
 
81
  proxy_pass http://127.0.0.1:5050;
82
  }
83
 
84
+ location ~ /codeserver/(.*) {
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
+ proxy_redirect off;
92
+ proxy_pass http://127.0.0.1:5050;
93
+ }
94
+
95
+ error_page 502 = /codeserver/;
96
  location / {
97
  proxy_pass http://127.0.0.1:5050;
98
  proxy_http_version 1.1;