# Streamlit nginx https deployment

**URL:** <https://discuss.streamlit.io/t/streamlit-nginx-https-deployment/49901>\
**Category:** Deployment\
**Created:** [August 23, 2023, 7:27am UTC](https://discuss.streamlit.io/t/streamlit-nginx-https-deployment/49901 "2023-08-23T07:27:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![li\_lili](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/li_lili/32/31077_2.png) [@li\_lili](https://discuss.streamlit.io/u/li_lili)\
**Post date:** [August 23, 2023, 7:27am UTC](https://discuss.streamlit.io/t/streamlit-nginx-https-deployment/49901/1 "2023-08-23T07:27:01Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [February 19, 2024, 7:27am UTC](https://discuss.streamlit.io/t/streamlit-nginx-https-deployment/49901/2 "2024-02-19T07:27:32Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
