mirror of
https://github.com/stryan/gandi-live-dns.git
synced 2024-11-22 13:25:45 -05:00
config updates
This commit is contained in:
parent
d51dd3e8d2
commit
e3e41d0eff
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
src/config.py
|
||||
src/config.pyc
|
@ -1,61 +0,0 @@
|
||||
'''
|
||||
Created on 13 Aug 2017
|
||||
@author: cave
|
||||
Copy this file to config.py and update the settings
|
||||
'''
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
|
||||
api_secret = os.environ.get("GANDI_API_SECRET", "TOKEN")
|
||||
api_endpoint = os.environ.get("GANDI_API_ENDPOINT",'https://dns.api.gandi.net/api/v5')
|
||||
|
||||
static_ip = os.environ.get("GANDI_STATIC_IP","")
|
||||
domain = os.environ.get("GANDI_DOMAIN","")
|
||||
subdomains = os.environ.get("GANDI_SUBDOMAINS","").split(",")
|
||||
ttl = os.environ.get("GANDI_TIMEOUT","300")
|
||||
ifconfig = os.environ.get("GANDI_IFCONFIG","https://ifconfig.co/ip")
|
||||
|
||||
|
||||
'''
|
||||
Original instructions below:
|
||||
'''
|
||||
|
||||
'''
|
||||
Get your API key
|
||||
Start by retrieving your API Key from the "Security" section in new Account admin panel to be able to make authenticated requests to the API.
|
||||
https://account.gandi.net/
|
||||
|
||||
api_secret = '---my_secret_API_KEY----'
|
||||
|
||||
|
||||
Gandiv5 LiveDNS API Location
|
||||
http://doc.livedns.gandi.net/#api-endpoint
|
||||
https://dns.api.gandi.net/api/v5/
|
||||
|
||||
api_endpoint = 'https://dns.api.gandi.net/api/v5'
|
||||
|
||||
#your domain with the subdomains in the zone file/UUID
|
||||
domain = 'mydomain.tld'
|
||||
|
||||
#enter all subdomains to be updated, subdomains must already exist to be updated
|
||||
subdomains = ["subdomain1", "subdomain2", "subdomain3"]
|
||||
|
||||
#300 seconds = 5 minutes
|
||||
ttl = '300'
|
||||
|
||||
|
||||
IP address lookup service
|
||||
run your own external IP provider:
|
||||
+ https://github.com/mpolden/ipd
|
||||
+ <?php $ip = $_SERVER['REMOTE_ADDR']; ?>
|
||||
<?php print $ip; ?>
|
||||
e.g.
|
||||
+ https://ifconfig.co/ip
|
||||
+ http://ifconfig.me/ip
|
||||
+ http://whatismyip.akamai.com/
|
||||
+ http://ipinfo.io/ip
|
||||
+ many more ...
|
||||
|
||||
ifconfig = 'choose_from_above_or_run_your_own'
|
||||
'''
|
Loading…
Reference in New Issue
Block a user