Spaces:
Build error
Build error
Create nginx.conf
Browse files- nginx.conf +21 -0
nginx.conf
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
server {
|
2 |
+
listen 7860;
|
3 |
+
|
4 |
+
location /gradio/ {
|
5 |
+
proxy_pass http://127.0.0.1:7861/;
|
6 |
+
proxy_http_version 1.1;
|
7 |
+
proxy_set_header Upgrade $http_upgrade;
|
8 |
+
proxy_set_header Connection "upgrade";
|
9 |
+
}
|
10 |
+
|
11 |
+
location /ws {
|
12 |
+
proxy_pass http://127.0.0.1:8000/ws;
|
13 |
+
proxy_http_version 1.1;
|
14 |
+
proxy_set_header Upgrade $http_upgrade;
|
15 |
+
proxy_set_header Connection "Upgrade";
|
16 |
+
}
|
17 |
+
|
18 |
+
location /api/ {
|
19 |
+
proxy_pass http://127.0.0.1:8000/;
|
20 |
+
}
|
21 |
+
}
|