Trust upstream proxies to specify https scheme

This commit is contained in:
Jake Moshenko 2016-02-03 13:08:43 -05:00
parent 958bd8e565
commit 0fdbf8a210
2 changed files with 9 additions and 4 deletions

View file

@ -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;
}