-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml.example
48 lines (39 loc) · 1.52 KB
/
config.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
sources: # define the sources from where to obtain address
- name: "ipify" # name of the source
type: json # type of the response, json | text
field: ip # field of where the address is, only applies to json
url:
v4: https://api.ipify.org?format=json # ipv4
v6: https://api6.ipify.org?format=json # ipv6
- name: "myip"
type: text # here 'type' is 'text', so no 'field' field
url:
v4: https://api.my-ip.io/v2/ip.txt
v6: https://api6.my-ip.io/v2/ip.txt
watcher:
timeout: 20 # checks timeout in seconds
force_source: "ipify" # force the use of a source, must match 'name' in sources
max_execution_time: 100 # max execution time of a 'script' action in seconds, value of 0 ignores execution time
events:
on_change: # when address changes
notify: false # enable or disable notifications
on_match: # when address doesn't change
notify: false
actions:
- type: "execute" # type of the action, script
bin: "python" # executable to execute, only applies to 'type' of 'script'
args: "-u scripts/update.py" # arguments to the executable, only applies to 'type' of 'script'
max_execution_time: 0 # overwrite max execution time
on_error: # when an error occurs
notify: false
smtp:
smtp_server: "smtp.gmail.com"
smtp_port: 587
username: "[email protected]"
password: "token"
from_address: "[email protected]"
recipients:
- address: "[email protected]"
name: "Example Name"
api:
port: 5555