# HTTPS using the in-built Tornado server?

**URL:** <https://discuss.streamlit.io/t/https-using-the-in-built-tornado-server/27896>\
**Category:** Deployment\
**Created:** [July 18, 2022, 11:25pm UTC](https://discuss.streamlit.io/t/https-using-the-in-built-tornado-server/27896 "2022-07-18T23:25:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LukeF](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/lukef/32/43928_2.png) [@LukeF](https://discuss.streamlit.io/u/LukeF)\
**Post date:** [July 18, 2022, 11:25pm UTC](https://discuss.streamlit.io/t/https-using-the-in-built-tornado-server/27896/1 "2022-07-18T23:25:40Z")

</div>

Hi all,

I am looking to deploy an app on a local server at work. We have a server which already serves webpages publicly so I was going to wrap my app in an iframe and simply add the html file to the server:

> <https://github.com/streamlit/streamlit/issues/911#issuecomment-572330272>
>
> First, Streamlit is amazing. Is it possible to embed a Streamlit app into an exi…sting webpage?
> 
> I made a simulation that would be great for marketing, but I need to be able to style the page to match the brand more than I currently can with the library, so embedding would be the best option.
> 
> Thanks and wishing an amazing year to Streamlit!

Our webpage uses SSL/HTTPS so I can view the resulting webpage/app internally, but get a blank screen when viewing externally to our network. I therefore have to add SSL to my app.

I know that people use nginx for this, but **I was wondering if anyone tried/got working the way described at the link below:**

> [@How to run streamlit in https mode?](https://discuss.streamlit.io/t/how-to-run-streamlit-in-https-mode/18426/7):
>
> Since Streamlit uses Tornado you can just edit the Package to make it use HTTPS instead of HTTP by adding the following “ssl\_options” in file “server.py” in path “C:\Python310\Lib\site-packages\streamlit\server”. And everything works fine. HTTPS gets used instead of HTTP and WebSocketSecure (WSS) gets used instead of WebSocket (WS).

**If so, is there any downside, limitations, issues I should consider before pursuing this method?**  
In case it isn’t obvious, I’m not a network guy…

Note: I can’t host this app on SL cloud as it interacts with a local database.

Thank you.

---

<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:** [July 18, 2023, 11:25pm UTC](https://discuss.streamlit.io/t/https-using-the-in-built-tornado-server/27896/2 "2023-07-18T23:25:59Z")

</div>

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