Skip to content

Instantly share code, notes, and snippets.

@4lun
Created September 23, 2016 15:22
Show Gist options
  • 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