Commit 6f259220 authored by 任国军's avatar 任国军

add huodongDB

parent d0ad6769
Pipeline #10258 passed with stage
in 17 seconds
......@@ -17,7 +17,7 @@ module.exports = appInfo => {
domainWhiteList: [],
};
config.middleware = ['errorHandler', 'deviceLogin', 'deviceInit', 'responseSet'];
config.middleware = [ 'errorHandler', 'deviceLogin', 'deviceInit', 'responseSet' ];
exports.multipart = {
// 不用steam用file
......
......@@ -14,7 +14,7 @@ module.exports = appInfo => {
dir: '/jianbing/logs/51business',
};
// add your config here
config.middleware = ['errorHandler', 'deviceLogin', 'deviceInit', 'responseSet'];
config.middleware = [ 'errorHandler', 'deviceLogin', 'deviceInit', 'responseSet' ];
// 是否启用csrf安全
config.security = {
......@@ -41,7 +41,7 @@ module.exports = appInfo => {
port: 3306,
},
{
//公积金数据库
// 公积金数据库
timezone: '+08:00',
delegate: 'gjjModel',
baseDir: 'model/gjj',
......@@ -64,7 +64,20 @@ module.exports = appInfo => {
username: process.env.MYSQL_REALESTATE_USER,
password: process.env.MYSQL_REALESTATE_PWD,
port: 3306,
}
},
{
// 东八时区
timezone: '+08:00',
delegate: 'huodongModel',
baseDir: 'model/huodong',
// other sequelize configurations
dialect: 'mysql',
host: process.env.MYSQL_HUODONG_HOST,
database: process.env.MYSQL_HUODONG_DB_NAME,
username: process.env.MYSQL_HUODONG_USER,
password: process.env.MYSQL_HUODONG_PWD,
port: 3306,
},
],
};
......@@ -88,6 +101,5 @@ module.exports = appInfo => {
config.USER_CENTER_API_URI = process.env.USER_CENTER_API_URI;
return config;
};
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