Skip to content

Commit

Permalink
Adds forwarding headers to proxy config in install docs (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort authored Nov 6, 2024
1 parent 44f7003 commit 87b631b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/install/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ Nginx is recommended, but administrators are welcome to use a proxy of their cho
A starter Nginx configuration file is provided below for convenience.

```nginx
upstream keystone_api {
server localhost:8000;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
Expand All @@ -226,6 +222,11 @@ server {
ssl_certificate_key /etc/pki/tls/private/keystone.key;
location / {
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;
proxy_pass http://unix:/run/gunicorn.sock;
}
Expand Down

0 comments on commit 87b631b

Please sign in to comment.