diff --git a/core/config.py b/core/config.py index 93be4ff..32ae1ec 100644 --- a/core/config.py +++ b/core/config.py @@ -10,15 +10,11 @@ class Settings(BaseSettings): 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' - DATABASE_URI = f'mongodb://{MDB_USER}:{MDB_PASSWORD}@{MDB_HOST}:{MDB_PORT}/admin' + SUPERUSER_EMAIL: str = '15392746632@qq.com' SUPERUSER_PASSWORD: str = '123456' @@ -244,13 +240,13 @@ class Settings(BaseSettings): class Debug(Settings): - REDIS_CONF = { - 'host': '139.159.159.3', - 'port': 6378, - 'password': 'd1Gh*zp5', - 'db': 1, - 'decode_responses': 'utf-8', - } + MDB_HOST: str = '10.0.0.7' + MDB_PORT: int = 27017 + MDB_USER: str = 'root' + MDB_PASSWORD: str = 'iamciniao' + MDB_DB: str = 'xdata' + + DATABASE_URI = f'mongodb://{MDB_USER}:{MDB_PASSWORD}@{MDB_HOST}:{MDB_PORT}/admin' class Produce(Settings): @@ -260,6 +256,8 @@ class Produce(Settings): MDB_PASSWORD: str = 'iamciniao' MDB_DB: str = 'xdata' + DATABASE_URI = f'mongodb://{MDB_USER}:{MDB_PASSWORD}@{MDB_HOST}:{MDB_PORT}/admin' + if sys.platform == 'linux': settings = Produce()