fix: Cleaned up readme
All checks were successful
Build Docker / Build SLDs Image (push) Successful in 18s
Build Docker / Build Main Image (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-11-16 15:52:59 +11:00
parent 9425851810
commit abf9f946d0
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 9 additions and 8 deletions

View File

@ -22,7 +22,8 @@ services:
DB_PASSWORD: your-db-password
DB_NAME: main
CITY_DOMAIN: exampledomainnathan1
VARO: <your-varo-apikey>
REG_KEY: <your-varo-apikey>
CITY_ALIAS: city.hnshosting.au # ICANN domain that points to the IP for the cities server
WORKERS: 2 # number of workers to run (should be 2 * number of cores)
sites:

14
varo.py
View File

@ -5,7 +5,7 @@ import dotenv
dotenv.load_dotenv()
zone = ""
TLSA = ""
varo_api = os.getenv('VARO')
REG_KEY = os.getenv('REG_KEY')
city_domain = os.getenv('CITY_DOMAIN')
if city_domain == "localhost":
city_domain = "exampledomainnathan1"
@ -42,7 +42,7 @@ def update_auth(auth,domain):
# Update TXT record
url = "https://reg.woodburn.au/api"
headers = {
'Authorization': 'Bearer '+varo_api,
'Authorization': 'Bearer '+REG_KEY,
'Content-Type': 'application/json'
}
r = requests.put(url, headers=headers, json=data)
@ -62,7 +62,7 @@ def get_auth_id(domain):
}
url = "https://reg.woodburn.au/api"
headers = {
'Authorization': 'Bearer '+varo_api,
'Authorization': 'Bearer '+REG_KEY,
'Content-Type': 'application/json'
}
r = requests.post(url, headers=headers, json=data)
@ -87,7 +87,7 @@ def get_auth(domain):
}
url = "https://reg.woodburn.au/api"
headers = {
'Authorization': 'Bearer '+varo_api,
'Authorization': 'Bearer '+REG_KEY,
'Content-Type': 'application/json'
}
r = requests.post(url, headers=headers, json=data)
@ -105,7 +105,7 @@ def get_zone():
global TLSA
url = "https://reg.woodburn.au/api"
headers = {
'Authorization': 'Bearer '+varo_api,
'Authorization': 'Bearer '+REG_KEY,
'Content-Type': 'application/json'
}
data = {
@ -146,7 +146,7 @@ def update_avatar(avatar,domain):
}
url = "https://reg.woodburn.au/api"
headers = {
'Authorization': 'Bearer '+varo_api,
'Authorization': 'Bearer '+REG_KEY,
'Content-Type': 'application/json'
}
r = requests.post(url, headers=headers, json=data)
@ -202,7 +202,7 @@ def verify_ALIAS(domain):
}
url = "https://reg.woodburn.au/api"
headers = {
'Authorization': 'Bearer '+varo_api,
'Authorization': 'Bearer '+REG_KEY,
'Content-Type': 'application/json'
}
r = requests.post(url, headers=headers, json=data)