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

Base url when behind reverse proxy #1208

Closed
agraven opened this issue Jan 21, 2020 · 1 comment
Closed

Base url when behind reverse proxy #1208

agraven opened this issue Jan 21, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@agraven
Copy link

agraven commented Jan 21, 2020

Rocket can't be used when behind a reverse proxy that sets a base url to something other than the domain's root, i.e. www.site.com/app-name/, as redirects break because what should be /app-name/api-point turns into just /api-point.

This makes rocket web apps frustrating to use when there is a large amount of services being run at a particular domain, as each rocket webapp has to be served at its own subdomain.

Some configuration option that would account this would make rocket usable in such an environment. It would presumably have to be exposed so templates and such could access it.

@jebrosen
Copy link
Collaborator

I believe this is a duplicate of #828, where a few workaround ideas have been proposed but nothing very concrete. The TL;DR is that it's useful and desirable, but it's hard to implement and test primarily because it would require new global state and/or significant new APIs.

@jebrosen jebrosen added the duplicate This issue or pull request already exists label Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants