File size: 929 Bytes
a07987e
ea98e65
a07987e
17c2f5e
a07987e
ea98e65
 
 
 
 
 
a07987e
 
 
 
 
 
 
 
12857b9
a07987e
 
 
 
 
 
 
 
17c2f5e
a07987e
 
 
17c2f5e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
worker_processes auto;

events { worker_connections 1024; }

http {
    # Redirect nginx temp file paths to /tmp
    client_body_temp_path /tmp/nginx-client-temp;
    proxy_temp_path       /tmp/nginx-proxy-temp;
    fastcgi_temp_path     /tmp/nginx-fastcgi-temp;
    uwsgi_temp_path       /tmp/nginx-uwsgi-temp;
    scgi_temp_path        /tmp/nginx-scgi-temp;

    server {
        listen 7860;

        location /gradio/ {
            proxy_pass http://127.0.0.1:7861/;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "Upgrade";
        }

        location /ws {
            proxy_pass http://127.0.0.1:8000/ws;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "Upgrade";
        }

        location / {
            proxy_pass http://127.0.0.1:8000/;
        }
    }
}