Move domain to hardcoded var, fix DNS ttl
This commit is contained in:
parent
198ae322c4
commit
e48209fca8
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ if [ ! -f "/etc/ddns-acme-porkbun.env" ]; then
|
|||
echo "Porkbun API key .env missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DOMAINS=("272254864.xyz" "*.272254864.xyz")
|
||||
set -a; source /etc/ddns-acme-porkbun.env; set +a
|
||||
|
||||
if [ -z "$EMAIL" ] || [ -z "$DOMAINS" ] || [ -z "$PORKBUN_SECRET_API_KEY" ] || [ -z "$PORKBUN_API_KEY" ]; then
|
||||
|
|
|
@ -11,8 +11,8 @@ class PorkbunClient():
|
|||
self.api_key = os.environ["PORKBUN_API_KEY"]
|
||||
self.client = requests.Session()
|
||||
self.porkbun_url_base = "https://porkbun.com/api/json/v3"
|
||||
self.domain = os.environ["DOMAINS"][0]
|
||||
self.ttl = os.environ.get("DNS_TTL", "5184000")
|
||||
self.domain = "272254864.xyz"
|
||||
self.ttl = "5184000"
|
||||
|
||||
self.get_ips()
|
||||
self.update_records()
|
||||
|
|
Loading…
Reference in a new issue