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

Automatic base url protocol detection behind reverse proxy (#905) #911

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

danmichaelo
Copy link
Contributor

@danmichaelo danmichaelo commented Dec 9, 2019

Use proxy headers (X-Forwarded-Proto and X-Forwarded-Host) to determine
the base url if configured to trust these headers (new configuration
option).

If this is merged, we also need to update https://github.com/NatLibFi/Skosmos/wiki/Configuration

I scaled this back to just use X-Forwarded-Proto to avoid any security implications, as discussed in #905. It still solves my use case of correctly guessing the base url behind a TLS termination proxy.

Use the X-Forwarded-Proto header to determine the protocol when
behind a TLS termination proxy.
@danmichaelo danmichaelo changed the title Automatic base url detection behind reverse proxy (#905) Automatic base url protocol detection behind reverse proxy (#905) Dec 9, 2019
@osma osma merged commit a895be5 into NatLibFi:master Jan 10, 2020
@osma
Copy link
Member

osma commented Jan 10, 2020

Thanks, and sorry for the delay! Simple and sweet!

@danmichaelo danmichaelo deleted the proxy-headers branch January 10, 2020 20:46
@kouralex kouralex added this to the 2.3 milestone Feb 12, 2020
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

Successfully merging this pull request may close these issues.

3 participants