I am trying to deploy my app on nginx. I have setup the nginx config to redirect port 8501 to my url.
It seems that the webserver config is fine, but that the Streamlit app does not load:
Going to the url, the page is blank, but the page title is “Streamlit”.
If I don’t start Streamlit in my server, the url returns “502 Bad Gateway”.
If I start a python server with python -m http.server 8501, the url gives me a file browser.
So it seems like the nginx config is mostly right, and that it is a problem with the Streamlit config.
I tried running the app with different options (–server.enableCORS=false, --server.enableXsrfProtection=false, --server.enableWebsocketCompression=false), but it does not help.