Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
financial-system
Commits
c6ece972
Commit
c6ece972
authored
Apr 24, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上线配置
parent
4a518f94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
11 deletions
+31
-11
env.py
core/config/env.py
+31
-11
No files found.
core/config/env.py
View file @
c6ece972
...
...
@@ -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
()
# 开发环境
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment