How to run streamlit in https mode?

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).

9 Likes