-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
cloudflare-dns.yaml
69 lines (63 loc) · 1.49 KB
/
cloudflare-dns.yaml
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
66
67
68
69
# Cloudflare DNS Configuration
# Cloudflare account settings
cloudflare:
zone_id: "your_zone_id_here"
zone_api_token: "your_api_token_here"
# Global settings (applied to all domains unless overridden)
globals:
ipv4: true
ipv6: true
proxied: true
ttl: auto
enable_create_record: false
# Domain-specific settings
domains:
- name: example.com
ipv4: true
ipv6: true
proxied: true
ttl: 1
- name: subdomain.example.com
ipv4: true
ipv6: false
proxied: false
ttl: 3600
# Advanced settings
advanced:
retry_attempts: 3
retry_interval: 5
max_parallel_jobs: 5
# Notification settings
notifications:
telegram:
enabled: false
bot_token: "your_telegram_bot_token"
chat_id: "your_telegram_chat_id"
email:
enabled: false
smtp_server: "smtp.example.com"
smtp_port: 587
use_ssl: true
username: "[email protected]"
password: "your_email_password"
from_address: "[email protected]"
to_address: "[email protected]"
subject: "Cloudflare DNS Update Notification"
slack:
enabled: false
webhook_url: "https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK"
discord:
enabled: false
webhook_url: "https://discord.com/api/webhooks/YOUR/DISCORD/WEBHOOK"
# Logging settings
logging:
file: "cloudflare-dns.log"
terminal_output: true
verbosity: "success"
rotate_log: false
max_size: 10485760 # 10 MB in bytes
rotate_count: 5
compress_days: 7
clean_days: 30
log_to_system: true
sanitize_logs: true