From 87b631ba2fcfb0ddd97cc484dd221958580183f5 Mon Sep 17 00:00:00 2001 From: Daniel Perrefort Date: Wed, 6 Nov 2024 11:25:51 -0500 Subject: [PATCH] Adds forwarding headers to proxy config in install docs (#474) --- docs/install/python.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/install/python.md b/docs/install/python.md index 4b78bcb1..5e8969ee 100644 --- a/docs/install/python.md +++ b/docs/install/python.md @@ -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; @@ -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; }