config.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. const CONF = {
  2. serverHost: 'localhost',
  3. tunnelServerUrl: '',
  4. tunnelSignatureKey: '27fb7d1c161b7ca52d73cce0f1d833f9f5b5ec89',
  5. // 腾讯云相关配置可以查看云 API 密钥控制台:https://console.cloud.tencent.com/capi
  6. qcloudAppId: '1253858020',
  7. qcloudSecretId: 'AKIDve8qJWnBerpdHhbTpwnQo21kDRQ9OqRq',
  8. qcloudSecretKey: 'JOEtJVWQ6XjgR4TluoTs5C3f1JCpDLEt',
  9. wxMessageToken: 'weixinmsgtoken',
  10. networkTimeout: 30000,
  11. port: '5757',
  12. rootPathname: '',
  13. // 微信小程序 App ID
  14. appId: '',
  15. // 微信小程序 App Secret
  16. appSecret: '',
  17. // 是否使用腾讯云代理登录小程序
  18. useQcloudLogin: true,
  19. /**
  20. * MySQL 配置,用来存储 session 和用户信息
  21. * 若使用了腾讯云微信小程序解决方案
  22. * 开发环境下,MySQL 的初始密码为您的微信小程序 appid
  23. */
  24. mysql: {
  25. host: 'localhost',
  26. port: 3306,
  27. user: 'root',
  28. db: 'cAuth',
  29. pass: '12345678',
  30. char: 'utf8mb4'
  31. },
  32. cos: {
  33. /**
  34. * 地区简称
  35. * @查看 https://cloud.tencent.com/document/product/436/6224
  36. */
  37. region: 'ap-guangzhou',
  38. // Bucket 名称
  39. fileBucket: 'qcloudtest',
  40. // 文件夹
  41. uploadFolder: ''
  42. },
  43. // 微信登录态有效期
  44. wxLoginExpires: 7200
  45. // wxMessageToken: 'abcdefgh'
  46. }
  47. module.exports = CONF