ws-terminal / nginx.conf
memex-in's picture
Create nginx.conf
17c2f5e verified
raw
history blame
498 Bytes
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 /api/ {
proxy_pass http://127.0.0.1:8000/;
}
}