Last active
September 20, 2020 12:01
-
-
Save aluminiumgeek/8592006 to your computer and use it in GitHub Desktop.
Nginx forward real client ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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