Skip to content

Commit

Permalink
added example config file
Browse files Browse the repository at this point in the history
  • Loading branch information
gweebg committed Feb 19, 2024
1 parent 60efded commit df6c006
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
sources:
- field: ip
name: "ipify"
type: json
url:
v4: https://api.ipify.org?format=json
v6: https://api6.ipify.org?format=json

- field: ip
name: "myip"
type: json
url:
v4: https://api4.my-ip.io/v2/ip.json
v6: https://api6.my-ip.io/v2/ip.json

watcher:

timeout: 10 # 43200 # 12 hours
# force_source: "ipify" # should not be included if not used
max_execution_time: 10

events:
on_change:
notify: false
actions:
- type: "python"
path: "scripts/example_script.py"
args: "-flag this_is_a_flag"

on_match:
notify: false

on_error:
notify: false

smtp:
smtp_server: "smtp.gmail.com" # or any other smtp servers
smtp_port: 587

username: "username"
password: "app_password"

from_address: "[email protected]"

recipients:
- address: "[email protected]"
name: "Example"

api:
port: 5555

0 comments on commit df6c006

Please sign in to comment.