pddnsc/settings/config.toml

44 lines
1.1 KiB
TOML

debug = false
require_ipv4 = true
[sources]
[sources.ipfy]
provider = "IPIFYSource"
[sources.wtf]
provider = "WTFIsMyIP"
[sources.ipsb]
provider = "IPSB"
[sources.checkip_dyndns]
provider = "GenericHttpRegexSource"
url_v4 = "http://checkip.dyndns.org/"
#regex_v4 = "\\b\\d{1,3}(\\.\\d{1,3}){3}\\b"
[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"