Skip to content

Instantly share code, notes, and snippets.

@aluminiumgeek
Last active September 20, 2020 12:01
Show Gist options
  • Save aluminiumgeek/8592006 to your computer and use it in GitHub Desktop.
Save aluminiumgeek/8592006 to your computer and use it in GitHub Desktop.
Nginx forward real client ip
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://upstream_name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment