mirror of
https://git.isptech.ru/ISPsystem/isp-maintenance.git
synced 2025-09-13 14:43:08 +02:00
feat!(mgrctl) new release 0.1.1
Updated: - dependencies - docker hub latest image Fixed: - dci input container name Changed: - remove peewee deps - remove data base management - remove mysql container for dev env - remove \__version__ from sub app
This commit is contained in:
@@ -5,11 +5,3 @@ from mgrctl.settings.platform import (
|
||||
PLATFORM_URL,
|
||||
PLATFORM_CONFIG
|
||||
)
|
||||
|
||||
from mgrctl.settings.db import(
|
||||
DB_ENGINE,
|
||||
DB_HOST,
|
||||
DB_PORT,
|
||||
DB_USER,
|
||||
DB_PASSWORD
|
||||
)
|
||||
|
@@ -13,7 +13,7 @@ from mgrctl.settings.platform import (
|
||||
)
|
||||
|
||||
# Name of nginx container:
|
||||
API_INPUT_HOSTNAME = 'input' if PLATFORM_TYPE == 'vm' else 'dci_input_1'
|
||||
API_INPUT_HOSTNAME = 'input'
|
||||
|
||||
# Port that nginx container is listening:
|
||||
API_INPUT_PORT = '1500'
|
||||
|
@@ -1,23 +0,0 @@
|
||||
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', '')
|
||||
)
|
Reference in New Issue
Block a user