pid /tmp/nginx.pid; | |
error_log /tmp/nginx/error.log; | |
events {} | |
http { | |
access_log /tmp/nginx/access.log; | |
client_body_temp_path /tmp/nginx/body; | |
fastcgi_temp_path /tmp/nginx/fastcgi_temp; | |
proxy_temp_path /tmp/nginx/proxy_temp; | |
scgi_temp_path /tmp/nginx/scgi_temp; | |
uwsgi_temp_path /tmp/nginx/uwsgi_temp; | |
server { | |
listen 8080; | |
location /gradio/ { | |
proxy_pass http://localhost:7860/; | |
proxy_buffering off; | |
proxy_redirect off; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $custom_host; | |
proxy_set_header X-Forwarded-Host $custom_host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
} | |
location /vnc/ { | |
proxy_pass http://localhost:6080/; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $custom_host; | |
} | |
location = / { | |
return 301 /gradio/; | |
} | |
} | |
} |