mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
add x-forwarded-proto as secure scheme default
Heroku uses this and it's the only one mentioned in Wikipedia's list of common non-standard headers. http://en.wikipedia.org/wiki/List_of_HTTP_header_fields
This commit is contained in:
parent
5f2a946f96
commit
dde77b73d1
@ -668,6 +668,7 @@ class SecureSchemeHeader(Setting):
|
||||
validator = validate_dict
|
||||
default = {
|
||||
"X-FORWARDED-PROTOCOL": "ssl",
|
||||
"X-FORWARDED-PROTO": "https",
|
||||
"X-FORWARDED-SSL": "on"
|
||||
}
|
||||
desc = """\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user