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