Run streamlit app on specific URL path

Is it possible to run a Streamlit app on a specific URL path?
Letโ€™s say I want my app to be accessible not on https://localhost on localhost/some-path .

Thanks!

Hi @Niccolo_Bulgarini, welcome to the forum!

Yes, it turns out there is a configuration option for that! If you create a file called .streamlit/config.toml and put the following lines in it, it should work:

[server]
baseUrlPath = "some-path"

That should do the trick! See Configuration - Streamlit Docs for more details.

2 Likes

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