Let NGINX display your IP address

I often have to find out my own external IP address. To have an ad-free webpage with an address I can remember, I’ve created this simple configuration snippet in NGINX:

server {
	server_name ip.uh.cx; # change this!
	listen 80;
	access_log /var/log/nginx/access.log vhost;
	location / {
	     default_type text/plain;
             return 200 "$remote_addr\n";
	}
}