-
Notifications
You must be signed in to change notification settings - Fork 24
/
.cloudflare.example
35 lines (30 loc) · 1.59 KB
/
.cloudflare.example
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
# The Cloudflare credentials (i.e. api token and zone id) can be
# obtained from your Cloudflare account online. The record information
# (i.e. id, name, type) can be obtained by first specifying the
# Cloudflare credentials and zone id here and then running
# 'cloudflare_ddns list'. This will query your Cloudflare account and download
# record information for the specified zone into a log file in the directory
# the script is executed from.
#
# KNOWN ISSUE: Zones with a large number of records may not download
# completely because Cloudflare paginates the results but the cloudflare_ddns
# script doesn't support pagination. You will have to manually query if this
# becomes a problem. It may also be possible to obtain record information
# directly from the web portal, but it wasn't obvious to me where.
# account credentials
CLOUDFLARE_API_TOKEN='<your cloudflare account api token>'
# DEPRECATION WARNING
# Cloudflare continues to support auth via email and api key, but
# they are encouraging the use of "tokens" for API access. These can be
# created through your Cloudflare account online. Once created, you can specify
# your token via the CLOUDFLARE_API_TOKEN setting.
CLOUDFLARE_EMAIL='<your cloudflare account email>'
CLOUDFLARE_API_KEY='<your cloudflare account api key>'
# zone information
DNS_ZONE_ID='<the id for the zone that contains your target dns record>'
# record information
DNS_RECORD_ID='<the id for the target dns record>'
DNS_RECORD_NAME='<the domain name to be changed>'
DNS_RECORD_TYPE='A'
# Determines whether the zone will be proxied by Cloudflare.
DNS_RECORD_PROXIED='false'