wantguns/bin

Using a different webroot for bin

DhruvaSambrani opened this issue · 1 comments

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.

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)?