1
This commit is contained in:
parent
08e87a4f4a
commit
6da00a1304
@ -1,3 +1,4 @@
|
|||||||
|
import sys
|
||||||
from typing import Any, Dict, List, Optional, Union
|
from typing import Any, Dict, List, Optional, Union
|
||||||
|
|
||||||
from pydantic import AnyHttpUrl, BaseSettings, EmailStr, HttpUrl, validator
|
from pydantic import AnyHttpUrl, BaseSettings, EmailStr, HttpUrl, validator
|
||||||
@ -30,9 +31,11 @@ class Settings(BaseSettings):
|
|||||||
SECRET_KEY: str = 'ZaFX6EypK6PtuhGv11q4DLRvAb0csiLx4dbKUwLwCe8'
|
SECRET_KEY: str = 'ZaFX6EypK6PtuhGv11q4DLRvAb0csiLx4dbKUwLwCe8'
|
||||||
|
|
||||||
REDIS_CONF = {
|
REDIS_CONF = {
|
||||||
'address': ('192.168.0.161', 6379),
|
'host': '139.159.159.3',
|
||||||
|
'port': 6378,
|
||||||
'password': 'd1Gh*zp5',
|
'password': 'd1Gh*zp5',
|
||||||
'db': 1, # 存表结构
|
'db': 1,
|
||||||
|
'decode_responses': 'utf-8',
|
||||||
}
|
}
|
||||||
|
|
||||||
CK_CONFIG = {'host': '119.29.176.224',
|
CK_CONFIG = {'host': '119.29.176.224',
|
||||||
@ -250,4 +253,15 @@ class Debug(Settings):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class Produce(Settings):
|
||||||
|
MDB_HOST: str = '119.29.176.224'
|
||||||
|
MDB_PORT: int = 27017
|
||||||
|
MDB_USER: str = 'root'
|
||||||
|
MDB_PASSWORD: str = 'iamciniao'
|
||||||
|
MDB_DB: str = 'xdata'
|
||||||
|
|
||||||
|
|
||||||
settings = Debug()
|
settings = Debug()
|
||||||
|
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
settings = Produce()
|
||||||
|
Loading…
Reference in New Issue
Block a user