123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /* eslint valid-jsdoc: "off" */
- 'use strict';
- const path = require("path");
- /**
- * @param {Egg.EggAppInfo} appInfo app info
- */
- module.exports = appInfo => {
-
- const config = exports = {};
- config.redis = {
- client: {
- port: 16379, // Redis port
- // host: "124.71.139.24", // Redis host
- host: "127.0.0.1", // Redis host
- password: "packtree",
- db: 2,
- },
- }
- config.mysql = {
- // 单数据库信息配置
- client: {
- charset: 'utf8mb4',
- // host
- host: '124.70.148.113',
- // 端口号
- port: '3306',
- // 用户名
- user: 'root',
- // 密码
- password: 'inFish@2020',
- // 数据库名
- database: 'train_db',
- }
- }
-
- config.serverhosts = {
- train:"http://192.168.110.185:7103"
- };
- config.static = {
- dir: [path.join(appInfo.baseDir, 'app/public')]
- // dir: [path.join(appInfo.baseDir, 'app/public'), {prefix:"/playback", dir:"/data1/ue4saved"}]
- // dirs: [ dir1, dir2 ] or [ dir1, { prefix: '/static2', dir: dir2 } ],
- };
- return config;
- };
|