Start streamlit app with (inside tmux):
streamlit run news-app.py --server.baseUrlPath="/reliability" --server.enableXsrfProtection=false server.enableCORS=false| location /:CUSTOM-PATH/ { | |
| proxy_pass http://127.0.0.1:<PORT>/:CUSTOM-PATH/; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| proxy_buffering off; | |
| proxy_http_version 1.1; | |
| # Also requires websocket: | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| proxy_read_timeout 86400; | |
| } | |
| nginx.conf can be found inside: `/etc/nginx/nginx.conf` |