Hi
I’m creating my first Streamlit app and have encountered the following problem.
In our deployment, all applications run behind a proxy (Spring Cloud Gateway), which performs various tasks. Among other things, this proxy handles authentication via OAuth. It is therefore necessary for all requests to be sent via the proxy.
During the local development of the Streamlit app, however, I encountered a problem. I start the proxy (port 3000) and the app (port 8501) locally. If I now call http://localhost:3000
, the request is forwarded correctly to the Streamlit app. But unfortunately, some requests (e.g. /_stcore/health, /_stcore/stream) are not called localhost:3000
, but localhost:8501
, so that the request is made directly to the Streamlit app and not through the proxy.
How can I implement this so that all requests are sent on port 3000?
[server]
headless=true
baseUrlPath = "/labeling"
enableCORS = false
enableXsrfProtection = false
[browser]
gatherUsageStats = false