config.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*开发版*/
  2. const CONF = {
  3. port: '5757',
  4. rootPathname: '',
  5. // 微信小程序 App ID
  6. // appId: 'wx0eedaadeee1d7f8a',
  7. appId: 'wxc65eea6a56ef0fd5',
  8. // 微信小程序 App Secret
  9. // appSecret: '778030e0a216a942080bb167b11f617c',
  10. appSecret: '5a6b38ecca25e27030b69c9f3e7076e7',
  11. // 是否使用腾讯云代理登录小程序
  12. useQcloudLogin: false,
  13. /**
  14. * MySQL 配置,用来存储 session 和用户信息
  15. * 若使用了腾讯云微信小程序解决方案
  16. * 开发环境下,MySQL 的初始密码为您的微信小程序 appid
  17. */
  18. mysql: {
  19. host: 'localhost',
  20. port: 3306,
  21. user: 'root',
  22. db: 'cAuth',
  23. // pass: 'wx0eedaadeee1d7f8a',
  24. pass: 'wxc65eea6a56ef0fd5',
  25. char: 'utf8mb4'
  26. },
  27. cos: {
  28. /**
  29. * 区域
  30. * @查看 https://cloud.tencent.com/document/product/436/6224
  31. */
  32. region: 'ap-guangzhou',
  33. // Bucket 名称
  34. fileBucket: 'wximg',
  35. // 文件夹
  36. uploadFolder: ''
  37. },
  38. // 微信登录态有效期
  39. wxLoginExpires: 7200
  40. }
  41. module.exports = process.env.NODE_ENV === 'local' ? Object.assign({}, CONF, require('./config.local')) : CONF;