Commit c6ece972 authored by xianyang's avatar xianyang

上线配置

parent 4a518f94
......@@ -66,15 +66,6 @@ class Env(BaseSettings):
# guild_url=""
oss_url = 'http://oss.3yakj.com/application_static_data'
CLEARING_CENTER_URL: str = 'http://106.55.103.148:6464/'
RABBITMQ: dict = {
"url": "http://106.55.103.148:16672/",
"host": "106.55.103.148",
"vhost": "/",
"port": 6672,
"username": "admin",
"password": "nimda",
"queue": "financial_consistency"
}
class TestingEnv(Env):
......@@ -82,11 +73,40 @@ class TestingEnv(Env):
TESTING: bool = True
class ProdEnv(Env):
class ProdEnv(BaseSettings):
"""生产环境配置"""
DATABASE_URI: str = 'mysql://user@localhost/foo'
DEBUG: bool = True
TESTING: bool = False
DATABASE_URI: str = 'sqlite://:memory:'
DATABASE_USER: str = ''
DATABASE_PWD: str = ''
LOG_PATH = os.path.join(SITE_ROOT_TOO, "bin", "runtime", "logs", "info", "")
LOG_ERROR_PATH = os.path.join(SITE_ROOT_TOO, "bin", "runtime", "logs", "error", "")
""""""
DB_HISTORY: dict = {
"database": "site_history",
"host": "rm-uf6353zg8maql4284uo.mysql.rds.aliyuncs.com",
"port": 3306,
"pwd": "@Finance3yakj@",
"user": "sa_finance_3yakj_2021"
}
DB_3YV2: dict = {
"database": "site_3yakj20191108",
"host": "pc-uf6y3l45p5d174314public.rwlb.rds.aliyuncs.com",
"port": 3306,
"pwd": "sa_3yakj@2019@@",
"user": "sa_3yakj"
}
Redis: dict = {
"host": "159.75.254.122",
"password": "fanjiao2021",
"port": 6379,
"redis_db": 9
}
SECRET_KEY: str = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7"
ALGORITHM: str = "HS256"
PASSWORD: str = "fj123456"
CLEARING_CENTER_URL: str = 'http://47.103.144.36:5454/'
env = Env() # 开发环境
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment