my streamlit app deploy with nginx, conf file like this:
map $http_upgrade $connection_upgrade {
default upgrade;
‘’ close;
}
server {
listen 443 ssl;
server_name xxxx;
ssl_certificate xxxx.pem;
ssl_certificate_key xxx.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 15m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://xxxx:5000; # 将流量代理到本地地址 http://127.0.0.1:8501/
}
location ^~ /static {
proxy_pass http://xxxx:5000/static/;
}
location ^~ /healthz {
proxy_pass http://xxxx:5000/healthz;
}
location ^~ /vendor {
proxy_pass http://xxx:5000/vendor;
}
location /stream {
proxy_pass http://xxxx:5000/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;
}
}
app always display Please waiting , who can help me ,where bug is it ?