Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PyFund
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
陈涛
PyFund
Commits
44f94d80
Commit
44f94d80
authored
Jun 26, 2023
by
陈涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交S环境配置
parent
5225d0fb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
S.py
configs/S.py
+16
-0
TEST.py
configs/TEST.py
+0
-2
__init__.py
configs/__init__.py
+2
-2
No files found.
configs/S.py
0 → 100644
View file @
44f94d80
from
configs
import
env
,
make_dburi
class
Settings
:
env
=
env
name
=
'S环境'
py_fund_mongodb_uri
=
make_dburi
(
schema
=
'mongodb'
,
sock_path
=
'172.10.26.21:27018'
,
user_name
=
'root'
,
pwd
=
'WzQeauA9XArIDuCRIxlpaMdT3Ik='
)
# mongodb = mongodb_url('127.0.0.1:27017')
redis_uri
=
make_dburi
(
schema
=
'redis'
,
sock_path
=
'172.10.26.231:6379'
,
pwd
=
'Uv2pet30!@#'
)
# api
identify_jwt
=
'http://identity.matrixone-s.svc/.well-known/openid-configuration/jwks'
# cmc
cmc_proxy
=
None
configs/TEST.py
View file @
44f94d80
...
...
@@ -6,8 +6,6 @@ class Settings:
name
=
'测试环境'
py_fund_mongodb_uri
=
make_dburi
(
schema
=
'mongodb'
,
sock_path
=
'172.10.0.18:27018'
,
user_name
=
'root'
,
pwd
=
'ETHQig66tzxoZc+wuIPEUTMVsY'
)
jasper_mongodb_uri
=
make_dburi
(
schema
=
'mongodb'
,
sock_path
=
'172.10.0.18:27018'
,
user_name
=
'root'
,
pwd
=
'ETHQig66tzxoZc+wuIPEUTMVsY'
)
# 数据库版本问题
# mongodb = mongodb_url('127.0.0.1:27017')
redis_uri
=
make_dburi
(
schema
=
'redis'
,
sock_path
=
'172.10.0.18:6379'
,
pwd
=
'MukAzxGMOL2'
)
...
...
configs/__init__.py
View file @
44f94d80
...
...
@@ -15,8 +15,8 @@ def make_dburi(schema, sock_path, user_name='', pwd=''):
env
=
os
.
getenv
(
"MATRIXONE_ENVIRONMENT"
,
"LOCAL"
)
if
env
==
'LOCAL'
:
from
configs.LOCAL
import
Settings
#
elif env == 'S':
#
from configs.S import Settings
elif
env
==
'S'
:
from
configs.S
import
Settings
elif
env
==
'TEST'
:
from
configs.TEST
import
Settings
else
:
...
...
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