feat: update external IP services and enhance Caddyfile redirection rules
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 13s
Nix Format Check / check-format (push) Successful in 44s
Python Lint Check / check-python (push) Failing after 16s

This commit is contained in:
Menno van Leeuwen 2025-03-26 16:33:54 +01:00
parent 0b54e1b534
commit 4529c57995
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
2 changed files with 6 additions and 1 deletions

View File

@ -117,7 +117,7 @@ def get_external_ips():
tuple: A tuple containing the IPv4 and IPv6 addresses as strings. If either
address cannot be fetched, it will be set to "Unavailable".
"""
services = ["https://ifconfig.co", "https://api.ipify.org", "https://myexternalip.com/raw", "https://ifconfig.io", "https://ifconfig.me"]
services = ["https://ip.mvl.sh", "https://ifconfig.co", "https://api.ipify.org", "https://myexternalip.com/raw", "https://ifconfig.io", "https://ifconfig.me"]
headers = {"User-Agent": "curl"}
ipv4, ipv6 = "Unavailable", "Unavailable"

View File

@ -64,6 +64,11 @@ fladder.mvl.sh {
}
ip.mvl.sh {
@http {
protocol http
}
redir @http https://{host}{uri}
reverse_proxy echoip:8080 {
header_up X-Real-IP {http.request.remote.host}
header_up X-Forwarded-For {http.request.remote.host}