Changed the default port to 80
This commit is contained in:
parent
e832032cd6
commit
ae806542e3
2
.env
2
.env
@ -2,7 +2,7 @@ API_URL_BASE=https://api.digitalocean.com/v2
|
|||||||
API_TOKEN=""
|
API_TOKEN=""
|
||||||
HTPASSWD=.htpasswd
|
HTPASSWD=.htpasswd
|
||||||
HOST=0.0.0.0
|
HOST=0.0.0.0
|
||||||
PORT=8000
|
PORT=80
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
DEBUG=true
|
DEBUG=true
|
||||||
|
|
||||||
|
@ -5,6 +5,5 @@ or with custom ip address
|
|||||||
http://[USERNAME]:[PASSWORD]@tanshu.com/update?hostname=[DOMAIN]&ip=[IP]
|
http://[USERNAME]:[PASSWORD]@tanshu.com/update?hostname=[DOMAIN]&ip=[IP]
|
||||||
The users are maintained in the .htpasswd file in the production.ini directory.
|
The users are maintained in the .htpasswd file in the production.ini directory.
|
||||||
The way to add/update users is "htpasswd .htpasswd [USERNAME]
|
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 the files can be changed in the environment variables.
|
||||||
The location of both the files can be changed in the ini file.
|
Also, the digital ocean api key needs to be configured in the environment variables.
|
||||||
Also, the webfaction username and password needs to be configured in the ini file.
|
|
@ -2,7 +2,6 @@ from environs import Env
|
|||||||
|
|
||||||
env = Env()
|
env = Env()
|
||||||
env.read_env() # read .env file, if it exists
|
env.read_env() # read .env file, if it exists
|
||||||
print("env reloaded")
|
|
||||||
|
|
||||||
|
|
||||||
class Settings:
|
class Settings:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user