benjamin-awd / StatementSensei

PDF to CSV conversion for your bank statements
https://statementsensei.streamlit.app/
GNU Affero General Public License v3.0
63 stars 9 forks source link

proxy config #17

Closed bsaurusrex closed 2 months ago

bsaurusrex commented 2 months ago

Is there an env to pass in an allowed proxy or hostname? I am trying to put this behind nginx but the content doesnt load.

benjamin-awd commented 2 months ago

Currently no, the host always defaults to localhost:8501 -- I'm not too familiar with nginx but you'll probably need to set up some kind of reverse proxy

Have you tried this? https://discuss.streamlit.io/t/deploy-streamlit-with-nginx-docker/52907/2

bsaurusrex commented 2 months ago

I found the change required. In entrypoint.py, this needs to be my FQDN on my proxy.

"--browser.serverAddress=localhost",

Is there a way I can pass browser.serverAddress=test.example.com into the docker environment variable?

benjamin-awd commented 2 months ago

Let me know if this works for you:

docker run -e BROWSER_SERVER_ADDRESS=test.example.com benjaminawd/statementsensei:0.7.3-rc.1

via PR: https://github.com/benjamin-awd/StatementSensei/pull/18/files

image

bsaurusrex commented 2 months ago

Working! Thank you.