I found the answer, just create a config.toml file located at users>username>.streamlit
In it you write:
[server]
# The base path for the URL where Streamlit should be served from.
# Default: ""
baseUrlPath = "/subfolder"