-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudflare-dns-update.conf
29 lines (24 loc) · 1.41 KB
/
cloudflare-dns-update.conf
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
### Domain configurations
# Format: domain_configs="zoneid1:domain1.com,domain2.com;zoneid2:domain3.com,domain4.com"
domain_configs="your_cloudflare_zone_id1:example1.com,sub1.example1.com;your_cloudflare_zone_id2:example2.com,sub2.example2.com"
### Global settings
cloudflare_zone_api_token="your_cloudflare_api_token"
enable_ipv6="no" # Set to "yes" to enable IPv6 updates
use_same_record_for_ipv6="yes" # Set to "no" to use different records for IPv6
dns_record_ipv6="" # Only used if use_same_record_for_ipv6 is set to "no"
ttl=1 # Or any value between 120 and 7200 (1 for automatic)
proxied=false # Or true
auto_create_records="yes" # Set to "no" to skip creating non-existent records
max_dns_backups=10 # Number of DNS record backups to keep (default: 10)
### Error handling settings
max_retries=3 # Maximum number of retry attempts for failed API calls
retry_delay=5 # Initial delay between retries in seconds (will increase exponentially)
max_retry_delay=60 # Maximum delay between retries in seconds
### Log settings
log_cleanup_days=7 # Number of days to keep logs (0 to disable cleanup)
### Update script settings
max_update_backups=10 # Number of update backups to keep (default: 10)
### Telegram notification settings (optional)
notify_telegram="no" # Or "yes"
telegram_bot_token="your_telegram_bot_token" # If using Telegram notifications
telegram_chat_id="your_telegram_chat_id" # If using Telegram notifications