Skip to content

Instantly share code, notes, and snippets.

@elmarx
Created September 26, 2015 14:40
Show Gist options
  • Save elmarx/0271f66eafec91bc6aa4 to your computer and use it in GitHub Desktop.
Save elmarx/0271f66eafec91bc6aa4 to your computer and use it in GitHub Desktop.
location /ip {
default_type 'text/plain';
content_by_lua "ngx.print(ngx.var.remote_addr)";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment