dn42-myip/nginx-html.j2

3 lines
824 B
Text
Raw Permalink Normal View History

2024-11-20 23:31:57 +00:00
default_type text/html;
return 200 '<!DOCTYPE html><html lang="en"><head><title>myip.dn42</title><meta name="author" content="dn42 community"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="robots" content="index, follow"><meta name="description" content="This service can tell you your IP address in dn42."><meta name="keywords" content="what is my ip,my ip"><body><table><tr><th>your IP address</th><td>$remote_addr</td></tr><tr><th>this node\'s IP address</th><td>$server_addr</td></tr><tr><th>this node\'s ASN</th><td>4242422002</td></tr><tr><th>this node\'s country</th><td>{% if country is defined %}{{ country }}{% else %}US{% endif %}</td></tr><tr><th>this node\'s name</th><td>{% if fqdn is defined %}{{ fqdn }}{% else %}myip.9pfs.dn42{% endif %}</td></tr></table></body></html>';