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 serving from a subpath (ie /pagerbeauty) #113

Open
tomwilkie opened this issue Jun 24, 2019 · 2 comments
Open

Support serving from a subpath (ie /pagerbeauty) #113

tomwilkie opened this issue Jun 24, 2019 · 2 comments

Comments

@tomwilkie
Copy link

Is your feature request related to a problem? Please describe.

I'd like to run pagerbeauty and serve is form a subpath (ie /pagerbeauty). We have a single https endpoint for tools, with an nginx forwarding various subpaths to those. This allows us to do access control centrally.

Describe the solution you'd like

An env var PAGERBEAUTY_HTTP_PATH=/pagerbeauty

Describe alternatives you've considered

I've tried having the nginx do all the rewrites in front of pagerbeauty, and got quite far - the redirect, the embedded scripts and styles etc. But the AJAX fetch of schedules.json is too much for a nginx rewrite.

@sergiitk
Copy link
Owner

Hey @tomwilkie. Thank you for your feedback. I thought AJAX fetches would work with relative paths; at least that's how I intended it to work. Might be a bug. I'll follow up on this later.

@tomwilkie
Copy link
Author

Thanks @sergiitk! Looks like they're using absolute URLs:

endpoint: '/v1/schedules.json',

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

2 participants