diff --git a/README.md b/README.md index a3da599..1e1733a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ services: DB_PASSWORD: your-db-password DB_NAME: main CITY_DOMAIN: exampledomainnathan1 - VARO: + REG_KEY: + 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: diff --git a/varo.py b/varo.py index e6c87fc..d07d6b9 100644 --- a/varo.py +++ b/varo.py @@ -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)