Base or Host URL ENV for Scriberr for reverse proxy setups #444
Nintend0d0
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I deployed Scriberr behind a reverse proxy. The organization does not allow the use of subdomains, therefore I would like to make the App accessible as follows
example.com/scriberr.Unfortunately, currently the approach does not work, as the frontend assumes its assets to load from
example.com/instead ofexample.com/scriberr, similarly, I assume that the api calls would go toexample.com/apiinstead ofexample.com/scriberr/api.For Vite, it is possible to build the frontend with the flag
--base=/scriberr. But that will probably not fix the API calls. Ideally, users shouldn't be required to rebuild the app to change the base URL.What I imagine as a solution: An additional environment variable, maybe called
BASE_URLorHOST_URL, that lets me set the URL toexample.com/scriberr, so the front-end can load assets and call the API using the correct absolute path.Thanks for taking this into consideration, and kind regards.
Beta Was this translation helpful? Give feedback.
All reactions