| server { | |
| listen 80; | |
| location / { | |
| proxy_pass http://127.0.0.1:7860/; # Change this if your Gradio app will be running on a different port | |
| 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 $host; | |
| } | |
| } | |