Compare commits

...

2 Commits

Author SHA1 Message Date
clerie fd57c7a9f2 Make domain replacement command shorter 2020-10-19 11:23:41 +02:00
clerie 79eed79546 Add example curl command 2020-10-19 11:21:59 +02:00
2 changed files with 3 additions and 2 deletions

View File

@ -12,10 +12,10 @@ ip4.clerie.de and ip6.clerie.de just returns the remote addr.
ip4.clerie.de has only an A record. ip6.clerie.de has only an AAAA record. ip4.clerie.de has only an A record. ip6.clerie.de has only an AAAA record.
If you want host this yourself you have to replace all hardcoded domains. You can use the following sed command. Don't forget to change `IP.EXAMPLE.COM`, `IP4.EXAMPLE.COM` and `IP6.EXAMPLE.COM` to your own. If you want host this yourself you have to replace all hardcoded domains. You can use the following sed command. Don't forget to change `.EXAMPLE.COM` to your own.
``` ```
sed -e '/git.clerie.de/!s/ip.clerie.de/IP.EXAMPLE.COM/g;s/ip4.clerie.de/IP4.EXAMPLE.COM/g;s/ip6.clerie.de/IP6.EXAMPLE.COM/g' ip.clerie.de sed -e '/git.clerie.de/!s/.clerie.de/.EXAMPLE.COM/g;' ip.clerie.de
``` ```
The first match is to exclude the line with the link to the git repo from replacing. The first match is to exclude the line with the link to the git repo from replacing.

View File

@ -58,6 +58,7 @@ server {
<li><b>IPv6:</b> <span id="ip6">Loading...</span></li> <li><b>IPv6:</b> <span id="ip6">Loading...</span></li>
<li><b>IPv4:</b> <span id="ip4">Loading...</span></li> <li><b>IPv4:</b> <span id="ip4">Loading...</span></li>
</ul> </ul>
<p>Use bash and curl: <code>curl ip{4,6}.clerie.de</code></p>
<p><small>Because any other "Whats my IP?"-tool sucks. <a href="https://git.clerie.de/clerie/ip.clerie.de">Host yourself :3</a></small></p> <p><small>Because any other "Whats my IP?"-tool sucks. <a href="https://git.clerie.de/clerie/ip.clerie.de">Host yourself :3</a></small></p>
</body> </body>
</html> </html>