diff --git a/doc/source/admin/nginx.md b/doc/source/admin/nginx.md index a76b8a6e564..eb523ee4cc2 100644 --- a/doc/source/admin/nginx.md +++ b/doc/source/admin/nginx.md @@ -189,7 +189,7 @@ previous section: # proxy all requests not matching other locations to Gunicorn location /galaxy { proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Upgrade $http_upgrade; proxy_pass http://unix:/srv/galaxy/var/gunicorn.sock:/galaxy;