add examples to config
This commit is contained in:
parent
9428b92e6a
commit
214002c56e
@ -6,19 +6,29 @@ require_ipv4 = true
|
||||
provider = "IPIFYSource"
|
||||
[sources.wtf]
|
||||
provider = "WTFIsMyIP"
|
||||
[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"
|
||||
[sources.fake]
|
||||
provider = "FakeSource"
|
||||
delay = 10
|
||||
ipv6 = "fe80::1"
|
||||
ipv4 = "127.0.0.1"
|
||||
|
||||
[filters]
|
||||
[filters.state-file]
|
||||
provider = "StateFileFilter"
|
||||
filepath = "state/state.json"
|
||||
check_ipv4 = true
|
||||
[filters.state-hash]
|
||||
provider = "StateHashFilter"
|
||||
filepath = "state/hash.txt"
|
||||
#[filters.state-hash]
|
||||
# provider = "StateHashFilter"
|
||||
# filepath = "state/hash.txt"
|
||||
|
||||
[outputs]
|
||||
[outputs.print]
|
||||
@ -26,6 +36,6 @@ require_ipv4 = true
|
||||
[outputs.state-file]
|
||||
provider = "StateFile"
|
||||
filepath = "state/state.json"
|
||||
[outputs.hash-file]
|
||||
provider = "StateHashFile"
|
||||
filepath = "state/hash.txt"
|
||||
#[outputs.hash-file]
|
||||
# provider = "StateHashFile"
|
||||
# filepath = "state/hash.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user