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

Running shields instance behind reverse proxy breaks page URLs #5894

Closed
1 of 3 tasks
voodoodror opened this issue Dec 2, 2020 · 4 comments
Closed
1 of 3 tasks

Running shields instance behind reverse proxy breaks page URLs #5894

voodoodror opened this issue Dec 2, 2020 · 4 comments
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas self-hosting Discussion, problems, features, and documentation related to self-hosting Shields

Comments

@voodoodror
Copy link

voodoodror commented Dec 2, 2020

Are you experiencing an issue with...

🪲 Description

As part of effort in securing my shields server using nginx reverse proxy (i.e. with queryparameter validation), it looks like page URLs are set with a slash:

href="/.....' 
src="/.....' 
data="/.....' 

and as a result I'm unable to use badges nor links. Tried also rewriting the URLs using nginx without any success.

💡 Possible Solution

Unfortunately, I didn't find any workaround.

@voodoodror voodoodror added the question Support questions, usage questions, unconfirmed bugs, discussions, ideas label Dec 2, 2020
@paulmelnikow
Copy link
Member

Could you explain why the slash is causing a problem?

@voodoodror
Copy link
Author

@paulmelnikow Sorry, my bad. forgot to mention that I used different path on nginx for reverse proxy, instead of root folder, it redirects to www.myurl.com/shields/

@paulmelnikow
Copy link
Member

paulmelnikow commented Dec 2, 2020

Is it just the frontend that's broken? You could try setting GATSBY_BASE_URL before running the build.

Why do you need to host it from a subfolder?

@voodoodror
Copy link
Author

voodoodror commented Dec 7, 2020

@paulmelnikow I will be trying GATSBY_BASE_URL and let you know. Thanks!

@calebcartwright calebcartwright added the self-hosting Discussion, problems, features, and documentation related to self-hosting Shields label Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas self-hosting Discussion, problems, features, and documentation related to self-hosting Shields
Projects
None yet
Development

No branches or pull requests

3 participants