Skip to content

Commit

Permalink
Merge pull request pallets#1456 from jonafato/proxy-setup-x-forwarded…
Browse files Browse the repository at this point in the history
…-proto

Add X-Forwarded-Proto header to proxy setup example docs
  • Loading branch information
untitaker committed Feb 17, 2016
2 parents 2094e8f + 887d382 commit e7d5485
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/deploying/wsgi-standalone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ localhost at port 8000, setting appropriate headers:
proxy_pass http://127.0.0.1:8000/;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

Expand Down

0 comments on commit e7d5485

Please sign in to comment.