config.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: 'root',
  25. char: 'utf8mb4'
  26. },
  27. tunnelServerUrl: 'http://tunnel.ws.qcloud.la',
  28. tunnelSignatureKey: '27fb7d1c161b7ca52d73cce0f1d833f9f5b5ec89',
  29. cos: {
  30. /**
  31. * 区域
  32. * @查看 https://cloud.tencent.com/document/product/436/6224
  33. */
  34. region: 'ap-guangzhou',
  35. // Bucket 名称
  36. fileBucket: 'wximg',
  37. // 文件夹
  38. uploadFolder: ''
  39. },
  40. // 微信登录态有效期
  41. wxLoginExpires: 7200
  42. }
  43. module.exports = process.env.NODE_ENV === 'local' ? Object.assign({}, CONF, require('./config.local')) : CONF;