Hey @sassan - welcome to Streamlit!
The /stream
endpoint handles Streamlit’s websocket traffic. I believe nginx needs additional configuration to handle websocket data; it won’t just work out of the box.
There’s another thread over here where users have shared configs that work for them, including the bits that are required for websocket connections - this would be a good place to start!