pddnsc/settings/config.toml
2024-02-21 16:07:10 +03:00

40 lines
961 B
TOML

debug = true
require_ipv4 = true
[sources]
[sources.ipfy]
provider = "IPIFYSource"
[sources.wtf]
provider = "WTFIsMyIP"
[sources.ipsb]
provider = "IPSB"
[sources.ifconfig]
provider = "GenericHttpSource"
url_v4 = "https://ifconfig.me/ip"
url_v6 = "https://ifconfig.me/ip"
[sources.ipconfig]
provider = "GenericHttpJsonSource"
url_v4 = "https://ipconfig.io/json"
url_v6 = "https://ipconfig.io/json"
key_v4 = "ip"
key_v6 = "ip"
[filters]
[filters.state-file]
provider = "StateFileFilter"
filepath = "state/state.json"
check_ipv4 = true
#[filters.state-hash]
# provider = "StateHashFilter"
# filepath = "state/hash.txt"
[outputs]
[outputs.print]
provider = "JustPrint"
[outputs.state-file]
provider = "StateFile"
filepath = "state/state.json"
#[outputs.hash-file]
# provider = "StateHashFile"
# filepath = "state/hash.txt"