server { | |
listen 80; | |
listen [::]:80; | |
server_name <|_SUBST_PUBLIC_IP|>; # Change this to your domain name | |
location / { # Change this if you'd like to server your Gradio app on a different path | |
proxy_pass http://0.0.0.0:7860/; # Change this if your Gradio app will be running on a different port | |
proxy_redirect off; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
} | |
} | |