mirror of
https://git.isptech.ru/ISPsystem/isp-maintenance.git
synced 2025-02-01 02:50:51 +01:00
24 lines
580 B
Python
24 lines
580 B
Python
from mgrctl.settings.environment import env
|
|
from mgrctl.settings.platform import PLATFORM_CONFIG
|
|
|
|
|
|
# ! Required because some instance use psql db:
|
|
DB_ENGINE = env.str(
|
|
'DB_ENGINE',
|
|
PLATFORM_CONFIG.get('DatabaseType', 'mysql')
|
|
)
|
|
|
|
# Connection parameters:
|
|
DB_HOST = env.str(
|
|
'DB_HOST',
|
|
PLATFORM_CONFIG.get('DatabaseType', 'mysql')
|
|
)
|
|
DB_PORT = env.int('DB_PORT', 3306)
|
|
DB_USER = env.str('DB_USER', 'root')
|
|
|
|
# ! Do not pass password on production. Use value from config.json
|
|
DB_PASSWORD = env.str(
|
|
'DB_PASSWORD',
|
|
PLATFORM_CONFIG.get('MysqlRootPassword', '')
|
|
)
|