This commit is contained in:
parent
d152465795
commit
35b35d24b2
@ -11,12 +11,13 @@ Nathan will then add your IP to the domain which will let you create a certifica
|
|||||||
|
|
||||||
## Install script
|
## Install script
|
||||||
Contact Nathan.Woodburn/ to get an Auth token.
|
Contact Nathan.Woodburn/ to get an Auth token.
|
||||||
Edit the cert.py file and add your Auth token.
|
Replace the token file with the token provided (this is case sensitive and must be exact).
|
||||||
This token is used to get a certificate for the domain.
|
This token is used to get a certificate for the domain.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://git.woodburn.au/nathanwoodburn/hns_doh_loadbalancer.git
|
git clone https://git.woodburn.au/nathanwoodburn/hns_doh_loadbalancer.git
|
||||||
cd hns_doh_loadbalancer
|
cd hns_doh_loadbalancer
|
||||||
|
echo "TOKEN FROM NATHAN" > token
|
||||||
sudo ./install.sh
|
sudo ./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
17
cert.py
17
cert.py
@ -5,10 +5,19 @@ import requests
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
### EDIT THESE: Configuration values ###
|
AUTH = ""
|
||||||
# CONTACT NATHAN FOR AUTH
|
# Check if token file exists
|
||||||
AUTH = "your-auth-here"
|
if os.path.isfile("token"):
|
||||||
### DO NOT EDIT BELOW THIS POINT ###
|
print("ERROR: Token file not found")
|
||||||
|
|
||||||
|
# Read token from file
|
||||||
|
with open("token", "r") as fh:
|
||||||
|
AUTH = fh.read().strip()
|
||||||
|
|
||||||
|
# Check if token is empty
|
||||||
|
if len(AUTH) == 0:
|
||||||
|
print("ERROR: Token is empty")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user