2017-07-27 11:50:15 +08:00
|
|
|
|
'use strict';
|
2017-07-26 11:26:28 +08:00
|
|
|
|
|
2017-07-27 11:50:15 +08:00
|
|
|
|
var _path = require('path');
|
|
|
|
|
|
|
|
|
|
var _path2 = _interopRequireDefault(_path);
|
|
|
|
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* config.js是用来第一次安装初始化网站配置,如果不用默认的runtime_path,可以直接修改runtime_path路径
|
|
|
|
|
*/
|
|
|
|
|
var runtime_path = _path2.default.join(_path2.default.resolve(__dirname, '../'), 'runtime');
|
|
|
|
|
var config = {
|
2017-07-27 09:17:02 +08:00
|
|
|
|
"port": 80,
|
2017-07-27 11:50:15 +08:00
|
|
|
|
"runtime_path": runtime_path,
|
2017-07-26 11:26:28 +08:00
|
|
|
|
"webhost": "yapi.local.qunar.com",
|
|
|
|
|
"adminAccount": "admin@admin.com",
|
|
|
|
|
"db": {
|
|
|
|
|
"servername": "127.0.0.1",
|
|
|
|
|
"DATABASE": "yapi",
|
|
|
|
|
"port": 27017
|
|
|
|
|
},
|
|
|
|
|
"mail": {
|
|
|
|
|
"host": "smtp.mail.com",
|
2017-07-27 09:11:43 +08:00
|
|
|
|
"from": "****@mail.com",
|
2017-07-26 11:26:28 +08:00
|
|
|
|
"port": 4652,
|
|
|
|
|
"auth": {
|
|
|
|
|
"user": "****@mail.com",
|
|
|
|
|
"pass": "**********"
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-07-27 11:50:15 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = config;
|