feat: update external IP services and enhance Caddyfile redirection rules
This commit is contained in:
parent
0b54e1b534
commit
4529c57995
@ -117,7 +117,7 @@ def get_external_ips():
|
|||||||
tuple: A tuple containing the IPv4 and IPv6 addresses as strings. If either
|
tuple: A tuple containing the IPv4 and IPv6 addresses as strings. If either
|
||||||
address cannot be fetched, it will be set to "Unavailable".
|
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"}
|
headers = {"User-Agent": "curl"}
|
||||||
ipv4, ipv6 = "Unavailable", "Unavailable"
|
ipv4, ipv6 = "Unavailable", "Unavailable"
|
||||||
|
|
||||||
|
@ -64,6 +64,11 @@ fladder.mvl.sh {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ip.mvl.sh {
|
ip.mvl.sh {
|
||||||
|
@http {
|
||||||
|
protocol http
|
||||||
|
}
|
||||||
|
redir @http https://{host}{uri}
|
||||||
|
|
||||||
reverse_proxy echoip:8080 {
|
reverse_proxy echoip:8080 {
|
||||||
header_up X-Real-IP {http.request.remote.host}
|
header_up X-Real-IP {http.request.remote.host}
|
||||||
header_up X-Forwarded-For {http.request.remote.host}
|
header_up X-Forwarded-For {http.request.remote.host}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user