Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support subpath in base URL #384

Open
atommaki opened this issue Apr 21, 2023 · 0 comments
Open

Support subpath in base URL #384

atommaki opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
feature Feature request
Milestone

Comments

@atommaki
Copy link

Is your feature request related to a problem? Please describe.
Currently Traduora assumes it is running on the root of a URL, however behind a proxy (eg: for https) you may want to run it on a different URL (sub path), what is currently not possible.
My webserver running on server.mycompany.com and I would like to redirect the incoming request to the https://server.mycompany.com/traduroa to my traduora server (running in docker in my case). I couldn't find a good way doing that.

Here is some with the same struggle, patching Traduroa to achive this: https://eder-chamale.medium.com/publishing-traduora-over-sub-path-and-a-reverse-proxy-b65941b8aa53

Describe the solution you'd like
Would be nice to have a a new variable where I could define the base URL path, like TR_URL_BASE_PATH. Similarly as the currently existing TR_VIRTUAL_HOST for the domain.

Describe alternatives you've considered
Currently I manually update the following files to adjust the URL:

webapp/src/environments/environment.prod.ts
webapp/src/index.html

But this is just a workaround, the worst part is it's a build time solution, so I still can't make it dynamic for my container.

@atommaki atommaki added the feature Feature request label Apr 21, 2023
@evereq evereq added this to the Traduora 1.0 milestone Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants