[conf] lecture des sections du nom des domaines activés et ajout dans request.scope['config']['config']

This commit is contained in:
Maxime Alves LIRMM 2021-06-23 15:03:00 +02:00
parent 9381e1582e
commit 8a9f93b9e0
1 changed files with 7 additions and 1 deletions

View File

@ -153,6 +153,12 @@ if is_project():
'project_name': PROJECT_NAME,
'production': PRODUCTION,
'secret': SECRET,
'domains': DOMAINS
'domains': DOMAINS,
'config': {}
}
for domain in DOMAINS:
if domain not in config.sections():
continue
CONFIG['config'][domain] = dict(config.items(domain))