feat: add mode selection

This commit is contained in:
2024-12-23 14:12:54 +01:00
parent 75754538df
commit 6333b75775
8 changed files with 113 additions and 72 deletions

View File

@@ -1,16 +1,15 @@
---
ip_provider:
type: plain
config:
url: https://ifconfig.me
url: https://example.com
dns_provider:
type: ionos
config:
api_key: exampleAPIKey
api_key: exampleapikey
base_url: https://example.com
domains:
- tld: example.com
subdomains:
- "@"
- www
check_interval: 0 0 0/6 * * * *
check_interval: 0 0 * * * *
mode: RunOnce

View File

@@ -0,0 +1,2 @@
mode: "InvalidMode"
check_interval: "5m"

View File

@@ -0,0 +1,3 @@
mode: "Scheduled"
check_interval: "5m"
- invalid_content

View File

@@ -0,0 +1,3 @@
mode: "Scheduled"
ip_provider:
type: "plain"