Commit 44f94d80 authored by 陈涛's avatar 陈涛

提交S环境配置

parent 5225d0fb
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
...@@ -6,8 +6,6 @@ class Settings: ...@@ -6,8 +6,6 @@ class Settings:
name = '测试环境' name = '测试环境'
py_fund_mongodb_uri = make_dburi(schema='mongodb', sock_path='172.10.0.18:27018', py_fund_mongodb_uri = make_dburi(schema='mongodb', sock_path='172.10.0.18:27018',
user_name='root', pwd='ETHQig66tzxoZc+wuIPEUTMVsY') 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') # mongodb = mongodb_url('127.0.0.1:27017')
redis_uri = make_dburi(schema='redis', sock_path='172.10.0.18:6379', pwd='MukAzxGMOL2') redis_uri = make_dburi(schema='redis', sock_path='172.10.0.18:6379', pwd='MukAzxGMOL2')
......
...@@ -15,8 +15,8 @@ def make_dburi(schema, sock_path, user_name='', pwd=''): ...@@ -15,8 +15,8 @@ def make_dburi(schema, sock_path, user_name='', pwd=''):
env = os.getenv("MATRIXONE_ENVIRONMENT", "LOCAL") env = os.getenv("MATRIXONE_ENVIRONMENT", "LOCAL")
if env == 'LOCAL': if env == 'LOCAL':
from configs.LOCAL import Settings from configs.LOCAL import Settings
# elif env == 'S': elif env == 'S':
# from configs.S import Settings from configs.S import Settings
elif env == 'TEST': elif env == 'TEST':
from configs.TEST import Settings from configs.TEST import Settings
else: else:
......
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