Update running-gradio-on-your-web-server-with-nginx.md (#6804)

Add proxy_buffering parameter.
This commit is contained in:
Lerk 2023-12-19 17:44:25 +01:00 committed by GitHub
parent 77c900311e
commit 16c0e4015c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ server {
location /gradio-demo/ { # Change this if you'd like to server your Gradio app on a different path location /gradio-demo/ { # Change this if you'd like to server your Gradio app on a different path
proxy_pass http://127.0.0.1:7860/; # Change this if your Gradio app will be running on a different port 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_redirect off;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;