Skip to content

Updated API to make it work under an HTTPS load balancer.#155

Closed
oroszgy wants to merge 1 commit into
noirbizarre:masterfrom
oroszgy:master
Closed

Updated API to make it work under an HTTPS load balancer.#155
oroszgy wants to merge 1 commit into
noirbizarre:masterfrom
oroszgy:master

Conversation

@oroszgy
Copy link
Copy Markdown

@oroszgy oroszgy commented Mar 31, 2016

The previous solution hardcoded the absolute url in the HTML file, which caused problems, when a web service is served behind HTTPS proxy.

@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling ec27f8b on oroszgy:master into * on noirbizarre:master*.

@noirbizarre
Copy link
Copy Markdown
Owner

I have it running behind an HTTPS load balancer.
Not using _external=True here breaks usage with subdomain blueprints.

I think what you need to have correct full URLs resolution is to include ProxyFix middleware and ensure the right headers are set by your load balancer (HAProxy, NGinx... they all handle this).
See http://flask.pocoo.org/docs/0.10/deploying/wsgi-standalone/#deploying-proxy-setups

let me know if it helps and fix you issue.

@adolli
Copy link
Copy Markdown

adolli commented Mar 1, 2019

#599
I also create one, but I thought the author is too busy to have this reviewed.

@oroszgy oroszgy closed this May 6, 2025
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.

4 participants