-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py.tmp
More file actions
44 lines (40 loc) · 1.91 KB
/
config.py.tmp
File metadata and controls
44 lines (40 loc) · 1.91 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
# Set this to the interface you want to use. Leave empty for default.
# e.g. "enp2s0"
INTERFACE = ""
BACKENDS = [
# Uncomment the following line if you want to send emails via Railgun when your ip changes
# 'railgun_backend',
# Uncomment the following line if you use Namecheap DynDNS
# 'namecheap_backend',
# Uncomment the following line if you use Cloudflare API
# 'cloudflare_backend',
]
RAILGUN = {
'HOST': '<your host>',
'API_KEY': '<your key>',
'EMAIL_SUBJECT': '<whatever you want, eg: IP change on example.com>',
'EMAIL_TEXT_TEMPLATE': '{}', # again, this can be whatever you want, but it must contain a single {} where the new IP will be inserted
'EMAIL_RECIPIENT': 'Your Name <you@host.com>',
'FROM_NAME': '<whatever you want as the sender of the email>',
}
NAMECHEAP = {
# NOTE: The values for the host name and domain must be lowercase.
# Please make sure you are using your Dynamic DNS password and not the Namecheap account's one.
'host': '<your namecheap DNS host, e.g. "@">',
'domain': '<your domain name, e.g. yourdomain.tld>',
'password': '<your Namecheap DynDNS password>',
}
CLOUDFLARE = {
'apiKey': '<the Cloudflare API key (Global API Key, https://www.cloudflare.com/a/profile)>',
'baseUrl': 'https://api.cloudflare.com/client/v4/', # Don't change this unless you know what you're doing
'dnsRecordData': {
'type': '<e.g. "A">',
'name': '<your domain name, e.g. yourdomain.tld>',
'ttl': <number of seconds, 1=automatic>,
'proxied': <True or False>
},
'dnsRecordId': '<the Cloudflare DNS Record id. See https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records>',
'email': '<your Cloudflare email>',
'serviceKey': '<the Cloudflare Service key (Origin CA Key, https://www.cloudflare.com/a/profile)>',
'zoneId': '<the Cloudflare zone id. See https://api.cloudflare.com/#zone-list-zones>',
}