Commit 3b898011 authored by pengxiong's avatar pengxiong

redis配置

parent d01a1060
...@@ -99,7 +99,8 @@ tamp_diagnose_app_engine = create_engine( ...@@ -99,7 +99,8 @@ tamp_diagnose_app_engine = create_engine(
redis = redis.StrictRedis( redis = redis.StrictRedis(
host=config[env]['redis']['host'], host=config[env]['redis']['host'],
port=config[env]['redis']['port'], port=config[env]['redis']['port'],
db=config[env]['redis']['db'] db=config[env]['redis']['db'],
password=config[env]['redis']['password']
) )
logging.basicConfig(level=logging.INFO, logging.basicConfig(level=logging.INFO,
......
...@@ -35,9 +35,10 @@ test: ...@@ -35,9 +35,10 @@ test:
user: root user: root
password: '@imeng123' password: '@imeng123'
redis: redis:
host: localhost host: 118.190.63.109
port: 6379 port: 56379
db: 0 db: 0
password: 'qimeng123'
oss: oss:
imgs_url_prefix: https://testtamper.tanpuyun.com/hangjiapc/report/productionenv/ReportTempImg/ imgs_url_prefix: https://testtamper.tanpuyun.com/hangjiapc/report/productionenv/ReportTempImg/
pdf_url_prefix: https://testtamper.tanpuyun.com/hangjiapc/report/productionenv/AppHoldReport/ pdf_url_prefix: https://testtamper.tanpuyun.com/hangjiapc/report/productionenv/AppHoldReport/
...@@ -60,9 +61,10 @@ prod: ...@@ -60,9 +61,10 @@ prod:
user: tamp_fund user: tamp_fund
password: '@imeng408' password: '@imeng408'
redis: redis:
host: localhost host: r-uf6atruhdbq89enqz0.redis.rds.aliyuncs.com
port: 6379 port: 6379
db: 0 db: 0
password: '@imeng123'
oss: oss:
imgs_url_prefix: https://tamper.tanpuyun.com/hangjiapc/report/productionenv/ReportTempImg/ imgs_url_prefix: https://tamper.tanpuyun.com/hangjiapc/report/productionenv/ReportTempImg/
pdf_url_prefix: https://tamper.tanpuyun.com/hangjiapc/report/productionenv/AppHoldReport/ pdf_url_prefix: https://tamper.tanpuyun.com/hangjiapc/report/productionenv/AppHoldReport/
......
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