Hi everyone!
i developed a simple multi page website using streamlit that communicates with various containerized backends, and i was trying to deploy it with nginx.
If i link the container port to localhost the website works perfectly, but if i try to depoly it the page loads it just says “please wait” and i get the error in the picture
I’ve already read various issues on it, so i set in the .toml file of streamlit enableCORS = false and
enableXsrfProtection=false
i’ll leave you the configuratiuon file of nginx, hope someone can help me understand what i’m doing wrong, since i’m fairly new to all this
Blockquote
upstream webapp{
server webapp:8501;
}
server {
listen 80;
location / {
proxy_pass http://webapp/;
}
location ^~ /static {
proxy_pass http://webapp/static;
}
location _stcore/health {
proxy_pass http://webapp/healthz;
}
location ^~ /vendor {
proxy_pass http://webapp/vendor;
}
location /_stcore/stream {
proxy_pass http://webapp/stream;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
}