This commit is contained in:
wuaho 2021-05-27 18:42:10 +08:00
parent b7e9a67732
commit 695a6168ba

View File

@ -10,15 +10,11 @@ class Settings(BaseSettings):
BACKEND_CORS_ORIGINS: List[str] = ['*'] BACKEND_CORS_ORIGINS: List[str] = ['*']
MDB_HOST: str = '10.0.0.7'
MDB_PORT: int = 27017
MDB_USER: str = 'root'
MDB_PASSWORD: str = 'iamciniao'
MDB_DB: str = 'xdata'
CASBIN_COLL: str = 'casbin_rule' CASBIN_COLL: str = 'casbin_rule'
DATABASE_URI = f'mongodb://{MDB_USER}:{MDB_PASSWORD}@{MDB_HOST}:{MDB_PORT}/admin'
SUPERUSER_EMAIL: str = '15392746632@qq.com' SUPERUSER_EMAIL: str = '15392746632@qq.com'
SUPERUSER_PASSWORD: str = '123456' SUPERUSER_PASSWORD: str = '123456'
@ -244,13 +240,13 @@ class Settings(BaseSettings):
class Debug(Settings): class Debug(Settings):
REDIS_CONF = { MDB_HOST: str = '10.0.0.7'
'host': '139.159.159.3', MDB_PORT: int = 27017
'port': 6378, MDB_USER: str = 'root'
'password': 'd1Gh*zp5', MDB_PASSWORD: str = 'iamciniao'
'db': 1, MDB_DB: str = 'xdata'
'decode_responses': 'utf-8',
} DATABASE_URI = f'mongodb://{MDB_USER}:{MDB_PASSWORD}@{MDB_HOST}:{MDB_PORT}/admin'
class Produce(Settings): class Produce(Settings):
@ -260,6 +256,8 @@ class Produce(Settings):
MDB_PASSWORD: str = 'iamciniao' MDB_PASSWORD: str = 'iamciniao'
MDB_DB: str = 'xdata' MDB_DB: str = 'xdata'
DATABASE_URI = f'mongodb://{MDB_USER}:{MDB_PASSWORD}@{MDB_HOST}:{MDB_PORT}/admin'
if sys.platform == 'linux': if sys.platform == 'linux':
settings = Produce() settings = Produce()