Changed the default port to 80

This commit is contained in:
tanshu 2020-05-04 15:42:11 +05:30
parent e832032cd6
commit ae806542e3
3 changed files with 3 additions and 5 deletions

2
.env
View File

@ -2,7 +2,7 @@ API_URL_BASE=https://api.digitalocean.com/v2
API_TOKEN=""
HTPASSWD=.htpasswd
HOST=0.0.0.0
PORT=8000
PORT=80
LOG_LEVEL=info
DEBUG=true

View File

@ -5,6 +5,5 @@ or with custom ip address
http://[USERNAME]:[PASSWORD]@tanshu.com/update?hostname=[DOMAIN]&ip=[IP]
The users are maintained in the .htpasswd file in the production.ini directory.
The way to add/update users is "htpasswd .htpasswd [USERNAME]
the domains should be in the "dns_info" file in the format "domain:ipaddress"
The location of both the files can be changed in the ini file.
Also, the webfaction username and password needs to be configured in the ini file.
The location of the files can be changed in the environment variables.
Also, the digital ocean api key needs to be configured in the environment variables.

View File

@ -2,7 +2,6 @@ from environs import Env
env = Env()
env.read_env() # read .env file, if it exists
print("env reloaded")
class Settings: