update build env

This commit is contained in:
Egor Svitin
2023-02-07 12:19:06 +03:00
parent 2615ce4b1d
commit 4ac5becb02
4 changed files with 9 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ class AppConfig:
self.refresh()
connect(
db=CONFIGS['db']['name'],
username=CONFIGS['db']['username'],
password=CONFIGS['db']['password']
host="mongodb://{host}:27017/{database}".format(host=CONFIGS['db']['host'], database=CONFIGS['db']['name'])
)

View File

@@ -3,7 +3,9 @@ import os
CONFIGS = {
'db' : {
'name' : os.environ['DB_NAME'],
'host' : os.environ['DB_HOST']
'host' : os.environ['DB_HOST'],
'username' : os.environ['DB_USERNAME'],
'password' : os.environ['DB_PASSWORD']
},
'application_credentials' : {
'api_url' : os.environ['API_URL'],