config.prod.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: 6379, // Redis port
  12. host: 'localhost', // Redis host
  13. password: "wj2020",
  14. db: 0,
  15. },
  16. }
  17. config.serverhosts = {
  18. train:"http://192.168.1.130:7103"
  19. };
  20. config.mysql = {
  21. // 单数据库信息配置
  22. client: {
  23. charset: 'utf8mb4',
  24. // host
  25. host: '192.168.1.7',
  26. // 端口号
  27. port: '3306',
  28. // 用户名
  29. user: 'root',
  30. // 密码
  31. password: 'root',
  32. // 数据库名
  33. database: 'train_db',
  34. }
  35. }
  36. config.static = {
  37. // dir: [path.join(appInfo.baseDir, 'app/public')]
  38. dir: [path.join(appInfo.baseDir, 'app/public'), {prefix:"/playback", dir:"/data1/ue4saved"}]
  39. // dirs: [ dir1, dir2 ] or [ dir1, { prefix: '/static2', dir: dir2 } ],
  40. };
  41. return config;
  42. };