12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /*开发版*/
- const CONF = {
- port: '5757',
- rootPathname: '',
- // 微信小程序 App ID
- // appId: 'wx0eedaadeee1d7f8a',
- appId: 'wxc65eea6a56ef0fd5',
- // 微信小程序 App Secret
- // appSecret: '778030e0a216a942080bb167b11f617c',
- appSecret: '5a6b38ecca25e27030b69c9f3e7076e7',
- // 是否使用腾讯云代理登录小程序
- useQcloudLogin: false,
- /**
- * MySQL 配置,用来存储 session 和用户信息
- * 若使用了腾讯云微信小程序解决方案
- * 开发环境下,MySQL 的初始密码为您的微信小程序 appid
- */
- mysql: {
- host: 'localhost',
- port: 3306,
- user: 'root',
- db: 'cAuth',
- // pass: 'wx0eedaadeee1d7f8a',
- pass: 'root',
- char: 'utf8mb4'
- },
- tunnelServerUrl: 'http://tunnel.ws.qcloud.la',
- tunnelSignatureKey: '27fb7d1c161b7ca52d73cce0f1d833f9f5b5ec89',
- cos: {
- /**
- * 区域
- * @查看 https://cloud.tencent.com/document/product/436/6224
- */
- region: 'ap-guangzhou',
- // Bucket 名称
- fileBucket: 'wximg',
- // 文件夹
- uploadFolder: ''
- },
- // 微信登录态有效期
- wxLoginExpires: 7200
- }
- module.exports = process.env.NODE_ENV === 'local' ? Object.assign({}, CONF, require('./config.local')) : CONF;
|