-
Notifications
You must be signed in to change notification settings - Fork 12
/
config-example.sh
62 lines (39 loc) · 2.24 KB
/
config-example.sh
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
############### START CONFIG ###############
## Check IP Address of This Hostname. I recommend making one specifically for Cloudflare (Non-Proxied)
hostnameaddr=cf.example.com
## Zones to update. Listed in array surrounded by paranthesis in the format: (example1.com example2.com ...) Remember array values start at 0
zones=(example.com example1.com example2.com)
############# Credentials #############
## First Set of Credentials listed in array in the format: (user@name.com zone_global_api_key)
user1_creds=("user1@example.com" "user1APIkey")
## Specify Zones that utilize the First Set of Credentials in array in the format: (0 1 ...)
user1_credzone=(0 1)
## Second Set of Credentials listed in array in the format: (user@name.com zone_global_api_key)
user2_creds=("user2@example2.com" "user2APIkey")
## Specify Zones that utilize the Second Set of Credentials in array in the format: (0 1 ...)
user2_credzone=(2)
############## Records ##############
## First Set of Records listed in array in the format: ("" cf mail ...) I recommend including "hostnameaddr" above
custom1_records=(cf)
## Specify Zones containing the aforementioned records to be updated in array in the format: (0 1 ...)
custom1_zones=(0)
## Specify whether records updated will have proxy enabled or disabled. Use either "yes" or "no" without quotes
custom1_proxied=no
## Second Set of Records listed in array in the format: ("" ns1 ...)
custom2_records=("")
## Specify Zones containing the aforementioned records to be updated in array in the format: (0 1 ...)
custom2_zones=(0 1 2)
## Specify whether records updated will have proxy enabled or disabled. Use either "yes" or "no" without quotes
custom2_proxied=yes
# If you add custom variables above (i.e. user3... or custom3...), you will also have to change the values below.
## Number of Sets of Credentials Above
user_creds_num=2
## Number of Sets of Records Above
custom_records_num=2
## Subdirectory to save API Identifiers for faster updates in the future
ids_dir=ids
## Directory to run the script from. Uncomment to override (Normally set to script location)
#updatedir=/your/working/directory
## Force update of records. Recommended if adding a new domain. Uncomment when needed.
#force=no
################ END CONFIG ################