Spaces:
Build error
Build error
worker_processes auto; | |
events { worker_connections 1024; } | |
http { | |
client_body_temp_path /tmp/nginx/client_body_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/; | |
} | |
} | |
} | |