fix: Use A record instead of Alias
All checks were successful
Build Docker / Build SLDs Image (push) Successful in 18s
Build Docker / Build Main Image (push) Successful in 19s

This commit is contained in:
Nathan Woodburn 2023-11-23 14:01:10 +11:00
parent 35322653a0
commit 80594ca9ac
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -10,7 +10,7 @@ city_domain = os.getenv('CITY_DOMAIN')
if city_domain == "localhost":
city_domain = "exampledomainnathan1"
server_alias = os.getenv('CITY_ALIAS')
server_ip = os.getenv('CITY_IP')
def update_auth(auth,domain):
verify_ALIAS(domain)
@ -210,9 +210,9 @@ def verify_ALIAS(domain):
data = {
"action": "addRecord",
"zone": zone,
"type": "ALIAS",
"type": "A",
"name": domain,
"content": server_alias,
"content": server_ip,
}
r = requests.post(url, headers=headers, json=data)
data = {