config.js 1.3 KB

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