Trust upstream proxies to specify https scheme
This commit is contained in:
parent
958bd8e565
commit
0fdbf8a210
2 changed files with 9 additions and 4 deletions
|
@ -29,6 +29,11 @@ map $proxy_protocol_addr $proper_forwarded_for {
|
|||
default $proxy_protocol_addr;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_proto $proper_scheme {
|
||||
default $scheme;
|
||||
https https;
|
||||
}
|
||||
|
||||
upstream web_app_server {
|
||||
server unix:/tmp/gunicorn_web.sock fail_timeout=0;
|
||||
}
|
||||
|
|
Reference in a new issue