Skip to content

Instantly share code, notes, and snippets.

@4lun
Created September 23, 2016 15:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4lun/a34164f8a6e0ee2b3125b8672e803ddc to your computer and use it in GitHub Desktop.
Save 4lun/a34164f8a6e0ee2b3125b8672e803ddc to your computer and use it in GitHub Desktop.
Server config for nginx that just returns the visitor's IP address
server {
listen 80;
server_name ip.domain.tld;
add_header Content-Type text/plain;
return 200 $remote_addr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment