memex-in commited on
Commit
17c2f5e
·
verified ·
1 Parent(s): fa458b4

Create nginx.conf

Browse files
Files changed (1) hide show
  1. 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
+ }