Commit b6c57c33 authored by tower's avatar tower

add

parent 141d8367
No preview for this file type
## 使用 config 下的配置文件,由开发负责修改 module.exports ={
\ No newline at end of file server:{
port:80
},
mongo:{
host:"192.168.6.5",
port:27017
}
};
\ No newline at end of file
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'
}
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