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

Using a different webroot for bin #17

Open
DhruvaSambrani opened this issue Jan 31, 2023 · 1 comment
Open

Using a different webroot for bin #17

DhruvaSambrani opened this issue Jan 31, 2023 · 1 comment

Comments

@DhruvaSambrani
Copy link

DhruvaSambrani commented Jan 31, 2023

I want to host the bin from myurl.com/bin, and am using caddy as a reverse proxy. The upload page loads fine while the html is fine, the js and css are requested from /assets/... instead of /bin/assets/..., but the upload form (and all other links) route as if / was the webroot. This breaks the website unless hosted on a different domain (bin.myurl.com) or on a different port.

@DhruvaSambrani
Copy link
Author

See rwf2/Rocket#828. Until there is an official Rocket fix, can bin read an envar webroot and prepend it at each uri call and at mount (as per comment in linked thread)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant