[conf] get -> items for list of domains, fix default conf
This commit is contained in:
parent
f5a210a855
commit
cf9b5168b4
|
@ -8,9 +8,9 @@ default_config = {
|
||||||
'project': {
|
'project': {
|
||||||
'host': '127.0.0.1',
|
'host': '127.0.0.1',
|
||||||
'port': '8000',
|
'port': '8000',
|
||||||
'secret': ''
|
'secret': '',
|
||||||
'base_dir': ''
|
'base_dir': '',
|
||||||
'production': ''
|
'production': 'no'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,4 +41,4 @@ with open(config.get('project', 'secret')) as secret_file:
|
||||||
PRODUCTION = config.getboolean('project', 'production')
|
PRODUCTION = config.getboolean('project', 'production')
|
||||||
BASE_DIR = config.get('project', 'base_dir')
|
BASE_DIR = config.get('project', 'base_dir')
|
||||||
|
|
||||||
DOMAINS = [domain for domain in config.get('domains').keys()]
|
DOMAINS = [domain for domain, _ in config.items('domains')]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
click
|
||||||
starlette
|
starlette
|
||||||
uvicorn
|
uvicorn
|
||||||
jwt
|
jwt
|
||||||
|
|
Loading…
Reference in New Issue