-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.toml
More file actions
65 lines (51 loc) · 1.9 KB
/
Copy pathconfig.example.toml
File metadata and controls
65 lines (51 loc) · 1.9 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Global poll interval in seconds (default: 5m).
# Can be overridden per instance.
interval = "5m"
# ---------------------------------------------------------------------------
# Retrievers - [retriever.<name>]
#
# Define named retriever configurations here, then reference them
# from instances by their name. Any field can be overridden per instance.
# ---------------------------------------------------------------------------
[retriever.home]
type = "ifconfigco"
# url = "" # optional, defaults to https://ifconfig.co
[retriever.office]
type = "unifi"
base_url = "https://10.0.0.1"
verify_tls = false
api_token = "unifi-token"
site_id = "default" # optional, defaults to "default"
# ---------------------------------------------------------------------------
# Providers - [provider.<name>]
#
# Define named provider configurations here, then reference them
# from instances by their name. Any field can be overridden per instance.
# ---------------------------------------------------------------------------
[provider.my-provider]
type = "hetznercloud"
api_token = "hetznercloud-token"
zone = "homelab.com" # can be omitted and supplied per instance instead
rr_name = "@"
# ---------------------------------------------------------------------------
# Instances - [instance.<name>]
#
# Each instance ties one retriever to one or more providers.
# ---------------------------------------------------------------------------
[instance.homelab]
interval = "5s" # optional: overrides the global interval
[instance.homelab.retriever]
name = "home"
[[instance.homelab.provider]]
name = "my-provider"
[[instance.homelab.provider]]
name = "my-provider"
zone = "homelab.net" # same account, second zone
rr_name = "subdomain"
[instance.office]
# no interval override — uses global default
[instance.office.retriever]
name = "office"
[[instance.office.provider]]
name = "my-provider"
zone = "office.com"