Skip to content

Instantly share code, notes, and snippets.

@raykipkorir
Created September 5, 2023 03:23
Show Gist options
  • Save raykipkorir/7158ed6d243cedefc80380dc8a66e801 to your computer and use it in GitHub Desktop.
Save raykipkorir/7158ed6d243cedefc80380dc8a66e801 to your computer and use it in GitHub Desktop.
This is the default example configuration of proxy_params provided by nginx. It is located under: /etc/nginx/proxy_params
proxy_set_header Host $http_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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment