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

Added ProxyFix wrapper to detect protocol from proxy #377

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

falquaddoomi
Copy link
Collaborator

@falquaddoomi falquaddoomi commented Aug 24, 2021

Basically, this allows biolink to correctly construct self-URLs when being served from behind an SSL-terminating proxy (e.g., how it's running behind the GCP load balancer). Without the fix, biolink will assume it's running on HTTP and construct self-URLs with that protocol. Specifically, it looks for a set of headers that your proxy should pass when hitting biolink; more details here: https://werkzeug.palletsprojects.com/en/2.0.x/middleware/proxy_fix/#werkzeug.middleware.proxy_fix.ProxyFix.

Other changes: removed unused imports, reformatted according to PEP8.

@falquaddoomi falquaddoomi marked this pull request as draft August 24, 2021 16:03
@falquaddoomi falquaddoomi marked this pull request as ready for review August 24, 2021 16:20
@kshefchek kshefchek self-requested a review August 25, 2021 15:14
@kshefchek kshefchek merged commit e4028b9 into monarch-initiative:master Aug 25, 2021
@falquaddoomi falquaddoomi deleted the proxyfix branch August 25, 2021 16:09
@falquaddoomi falquaddoomi restored the proxyfix branch August 25, 2021 16:09
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.

2 participants