config.local.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* eslint valid-jsdoc: "off" */
  2. 'use strict';
  3. const path = require("path");
  4. /**
  5. * @param {Egg.EggAppInfo} appInfo app info
  6. */
  7. module.exports = appInfo => {
  8. const config = exports = {};
  9. config.redis = {
  10. client: {
  11. port: 16379, // Redis port
  12. // host: "124.71.139.24", // Redis host
  13. host: "127.0.0.1", // Redis host
  14. password: "packtree",
  15. db: 2,
  16. },
  17. }
  18. config.mysql = {
  19. // 单数据库信息配置
  20. client: {
  21. charset: 'utf8mb4',
  22. // host
  23. host: '124.70.148.113',
  24. // 端口号
  25. port: '3306',
  26. // 用户名
  27. user: 'root',
  28. // 密码
  29. password: 'inFish@2020',
  30. // 数据库名
  31. database: 'train_db',
  32. }
  33. }
  34. config.serverhosts = {
  35. train:"http://192.168.110.185:7103"
  36. };
  37. config.static = {
  38. dir: [path.join(appInfo.baseDir, 'app/public')]
  39. // dir: [path.join(appInfo.baseDir, 'app/public'), {prefix:"/playback", dir:"/data1/ue4saved"}]
  40. // dirs: [ dir1, dir2 ] or [ dir1, { prefix: '/static2', dir: dir2 } ],
  41. };
  42. return config;
  43. };