fix: Cleaned up readme
This commit is contained in:
parent
9425851810
commit
abf9f946d0
@ -22,7 +22,8 @@ services:
|
|||||||
DB_PASSWORD: your-db-password
|
DB_PASSWORD: your-db-password
|
||||||
DB_NAME: main
|
DB_NAME: main
|
||||||
CITY_DOMAIN: exampledomainnathan1
|
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)
|
WORKERS: 2 # number of workers to run (should be 2 * number of cores)
|
||||||
|
|
||||||
sites:
|
sites:
|
||||||
|
14
varo.py
14
varo.py
@ -5,7 +5,7 @@ import dotenv
|
|||||||
dotenv.load_dotenv()
|
dotenv.load_dotenv()
|
||||||
zone = ""
|
zone = ""
|
||||||
TLSA = ""
|
TLSA = ""
|
||||||
varo_api = os.getenv('VARO')
|
REG_KEY = os.getenv('REG_KEY')
|
||||||
city_domain = os.getenv('CITY_DOMAIN')
|
city_domain = os.getenv('CITY_DOMAIN')
|
||||||
if city_domain == "localhost":
|
if city_domain == "localhost":
|
||||||
city_domain = "exampledomainnathan1"
|
city_domain = "exampledomainnathan1"
|
||||||
@ -42,7 +42,7 @@ def update_auth(auth,domain):
|
|||||||
# Update TXT record
|
# Update TXT record
|
||||||
url = "https://reg.woodburn.au/api"
|
url = "https://reg.woodburn.au/api"
|
||||||
headers = {
|
headers = {
|
||||||
'Authorization': 'Bearer '+varo_api,
|
'Authorization': 'Bearer '+REG_KEY,
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
r = requests.put(url, headers=headers, json=data)
|
r = requests.put(url, headers=headers, json=data)
|
||||||
@ -62,7 +62,7 @@ def get_auth_id(domain):
|
|||||||
}
|
}
|
||||||
url = "https://reg.woodburn.au/api"
|
url = "https://reg.woodburn.au/api"
|
||||||
headers = {
|
headers = {
|
||||||
'Authorization': 'Bearer '+varo_api,
|
'Authorization': 'Bearer '+REG_KEY,
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
r = requests.post(url, headers=headers, json=data)
|
r = requests.post(url, headers=headers, json=data)
|
||||||
@ -87,7 +87,7 @@ def get_auth(domain):
|
|||||||
}
|
}
|
||||||
url = "https://reg.woodburn.au/api"
|
url = "https://reg.woodburn.au/api"
|
||||||
headers = {
|
headers = {
|
||||||
'Authorization': 'Bearer '+varo_api,
|
'Authorization': 'Bearer '+REG_KEY,
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
r = requests.post(url, headers=headers, json=data)
|
r = requests.post(url, headers=headers, json=data)
|
||||||
@ -105,7 +105,7 @@ def get_zone():
|
|||||||
global TLSA
|
global TLSA
|
||||||
url = "https://reg.woodburn.au/api"
|
url = "https://reg.woodburn.au/api"
|
||||||
headers = {
|
headers = {
|
||||||
'Authorization': 'Bearer '+varo_api,
|
'Authorization': 'Bearer '+REG_KEY,
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
data = {
|
data = {
|
||||||
@ -146,7 +146,7 @@ def update_avatar(avatar,domain):
|
|||||||
}
|
}
|
||||||
url = "https://reg.woodburn.au/api"
|
url = "https://reg.woodburn.au/api"
|
||||||
headers = {
|
headers = {
|
||||||
'Authorization': 'Bearer '+varo_api,
|
'Authorization': 'Bearer '+REG_KEY,
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
r = requests.post(url, headers=headers, json=data)
|
r = requests.post(url, headers=headers, json=data)
|
||||||
@ -202,7 +202,7 @@ def verify_ALIAS(domain):
|
|||||||
}
|
}
|
||||||
url = "https://reg.woodburn.au/api"
|
url = "https://reg.woodburn.au/api"
|
||||||
headers = {
|
headers = {
|
||||||
'Authorization': 'Bearer '+varo_api,
|
'Authorization': 'Bearer '+REG_KEY,
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
r = requests.post(url, headers=headers, json=data)
|
r = requests.post(url, headers=headers, json=data)
|
||||||
|
Loading…
Reference in New Issue
Block a user