{ ... }: { services.nginx.virtualHosts = { "ip.clerie.de" = { enableACME = true; forceSSL = true; locations."/" = { return = ''200 '
Use bash and curl: curl ip{4,6}.clerie.de
Because any other "Whats my IP?"-tool sucks. Host yourself :3
' ''; extraConfig = '' types { } default_type "text/html; charset=utf-8"; ''; }; }; "ip4.clerie.de" = { enableACME = true; forceSSL = true; locations."/" = { return = ''200 "$remote_addr\n"''; extraConfig = '' types { } default_type "text/plain; charset=utf-8"; add_header Access-Control-Allow-Origin *; ''; }; }; "ip6.clerie.de" = { enableACME = true; forceSSL = true; locations."/" = { return = ''200 "$remote_addr\n"''; extraConfig = '' types { } default_type "text/plain; charset=utf-8"; add_header Access-Control-Allow-Origin *; ''; }; }; }; }