hf4all commited on
Commit
39a48b1
·
1 Parent(s): 64544f2

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +10 -0
nginx.conf CHANGED
@@ -92,6 +92,16 @@ http {
92
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
93
  }
94
 
 
 
 
 
 
 
 
 
 
 
95
  location @vscode {
96
  return 302 https://$host/vscode/?folder=/home/user/app;
97
  }
 
92
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
93
  }
94
 
95
+ location /v1/ {
96
+ proxy_pass http://127.0.0.1:8181/;
97
+ proxy_http_version 1.1;
98
+ proxy_set_header Upgrade $http_upgrade;
99
+ proxy_set_header Connection "Upgrade";
100
+ proxy_set_header Host $host;
101
+ proxy_read_timeout 86400;
102
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
103
+ }
104
+
105
  location @vscode {
106
  return 302 https://$host/vscode/?folder=/home/user/app;
107
  }