yapi/server_dist/config.js

34 lines
842 B
JavaScript
Raw Normal View History

2017-07-27 11:50:15 +08:00
'use strict';
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 = {
"port": 80,
2017-07-27 11:50:15 +08:00
"runtime_path": runtime_path,
"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",
"port": 4652,
"auth": {
"user": "****@mail.com",
"pass": "**********"
}
}
2017-07-27 11:50:15 +08:00
};
module.exports = config;