1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /* 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: 6379, // Redis port
- host: 'localhost', // Redis host
- password: "wj2020",
- db: 0,
- },
- }
-
- config.serverhosts = {
- train:"http://192.168.1.130:7103"
- };
- config.mysql = {
- // 单数据库信息配置
- client: {
- charset: 'utf8mb4',
- // host
- host: '192.168.1.7',
- // 端口号
- port: '3306',
- // 用户名
- user: 'root',
- // 密码
- password: 'root',
- // 数据库名
- database: 'train_db',
- }
- }
-
- 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;
- };
|