Skip to content

Instantly share code, notes, and snippets.

@liushooter
Created June 13, 2015 03:04
Show Gist options
  • Save liushooter/162f006dc9596dafd7a2 to your computer and use it in GitHub Desktop.
Save liushooter/162f006dc9596dafd7a2 to your computer and use it in GitHub Desktop.
zqw
proxy_set_header X-Real-IP $remote_addr;
# 然后在Grape 里面用 headers['X-Real-Ip'] 就可以取到 remote ip 了
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment