Created
September 23, 2016 15:22
-
-
Save 4lun/a34164f8a6e0ee2b3125b8672e803ddc to your computer and use it in GitHub Desktop.
Server config for nginx that just returns the visitor's IP address
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
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