|
|
@ -18,6 +18,7 @@ DEFAULT_CONFIG = {
|
|
|
|
'DB_PW': None,
|
|
|
|
'DB_PW': None,
|
|
|
|
'DB_HOST': 'database',
|
|
|
|
'DB_HOST': 'database',
|
|
|
|
'DB_NAME': 'mailu',
|
|
|
|
'DB_NAME': 'mailu',
|
|
|
|
|
|
|
|
'SQLITE_DATABASE_FILE':'data/main.db',
|
|
|
|
'SQLALCHEMY_DATABASE_URI': 'sqlite:////data/main.db',
|
|
|
|
'SQLALCHEMY_DATABASE_URI': 'sqlite:////data/main.db',
|
|
|
|
'SQLALCHEMY_TRACK_MODIFICATIONS': False,
|
|
|
|
'SQLALCHEMY_TRACK_MODIFICATIONS': False,
|
|
|
|
# Statistics management
|
|
|
|
# Statistics management
|
|
|
@ -66,7 +67,7 @@ class ConfigManager(dict):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
DB_TEMPLATES = {
|
|
|
|
DB_TEMPLATES = {
|
|
|
|
'sqlite': 'sqlite:////{DB_HOST}',
|
|
|
|
'sqlite': 'sqlite:////{SQLITE_DATABASE_FILE}',
|
|
|
|
'postgresql': 'postgresql://{DB_USER}:{DB_PW}@{DB_HOST}/{DB_NAME}',
|
|
|
|
'postgresql': 'postgresql://{DB_USER}:{DB_PW}@{DB_HOST}/{DB_NAME}',
|
|
|
|
'mysql': 'mysql://{DB_USER}:{DB_PW}@{DB_HOST}/{DB_NAME}'
|
|
|
|
'mysql': 'mysql://{DB_USER}:{DB_PW}@{DB_HOST}/{DB_NAME}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|