Commit 47f1eb95 authored by 智勇's avatar 智勇

activity-op config

parent ee502baf
const path = require('path');
const logDir = path.resolve(process.cwd(), '../logs')
module.exports = {
port: '80',
// mongodb
db: 'activity',
dbIp: '192.168.4.50',
dbPort: '27017',
dbUser: '',
dbPass: '',
// qiniu
domain: 'http://activity-op.domain.com',
ACCESS_KEY: 'QyjX3i2tEMvrv50j6M_wpb9YoFJbxSm3jEkOj9lY',
SECRET_KEY: 'uoMTzRLoElTAKXVzelGgTvI652zJ8bCz_qqTtoGl',
BUCKET: 'activity-test',
// log4js
log4js: {
appenders: {
app: { type: 'dateFile', filename: logDir + '/activity-op.log', daysToKeep: 3, compress: true },
error: { type: 'dateFile', filename: logDir + '/activity-op.error.log', daysToKeep: 3, compress: true },
just_errors: { type: 'logLevelFilter', appender: 'error', level: 'error' }
},
categories: {
default: { appenders: ['app', 'just_errors'], level: 'info' }
}
},
// API
APP_API: 'http://sappbackend.domain.com',
XYQB_API: 'http://api.domain.com',
REDPACKET_API: 'http://redpacket.domain.com',
MEMBER_API: 'http://member.domain.com'
}
......@@ -63,7 +63,7 @@ for file in files:
for line in fileinput.input(file, inplace = 1):
for item in config:
rule = copy.deepcopy(item[1])
if rule.get('useNamespace', None) and rule['to']:
if rule.get('useNamespace', None) and rule['to']:
rule['to'] = '-' + namespace + rule['to']
if rule.get('useHost', None):
......
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