forked from heyushuo/mpvue-shop-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
75 lines (61 loc) · 2.1 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
const CONF = {
//本开发环境搭建-----------------------------------------------------------------
// // 其他配置 ...
// serverHost: 'localhost',
// tunnelServerUrl: '',
// tunnelSignatureKey: '27fb7d1c161b7ca52d73cce0f1d833f9f5b5ec89',
// // 腾讯云相关配置可以查看云 API 秘钥控制台:https://console.cloud.tencent.com/capi
// qcloudAppId: '1257197283',
// qcloudSecretId: 'AKIDJXggU7vpupY5RetcKrCLI3czAA1g7QYU',
// qcloudSecretKey: 'ta7av65sTt7TjnfOvGPPFtKI9pKdlgml',
// wxMessageToken: 'weixinmsgtoken',
// networkTimeout: 30000,
//本开发环境搭建-----------------------------------------------------------------------
port: '5757',
rootPathname: '',
// 微信小程序 App ID
appId: 'wx601ce71bde7b9add',
// 微信小程序 App Secret
appSecret: '70f8b290df708e2482169662e730b8fc',
// 是否使用腾讯云代理登录小程序
useQcloudLogin: true,
/**
* MySQL 配置,用来存储 session 和用户信息
* 若使用了腾讯云微信小程序解决方案
* 开发环境下,MySQL 的初始密码为您的微信小程序 appid
*/
mysql: {
host: 'localhost',
port: 3306,
user: 'root',
db: 'nodemysql',
pass: '123456',
char: 'utf8mb4'
},
cos: {
/**
* 地区简称
* @查看 https://cloud.tencent.com/document/product/436/6224
*/
region: 'ap-guangzhou',
// Bucket 名称
fileBucket: 'qcloudtest',
// 文件夹
uploadFolder: ''
},
// 微信登录态有效期
wxLoginExpires: 7200,
//线上配置----------------------------
// 其他配置 ...
serverHost: 'www.heyuhsuo.xyz',
tunnelServerUrl: 'http://tunnel.ws.qcloud.la',
tunnelSignatureKey: '27fb7d1c161b7ca52d73cce0f1d833f9f5b5ec89',
// 腾讯云相关配置可以查看云 API 密钥控制台:https://console.cloud.tencent.com/capi
qcloudAppId: '1257197283',
qcloudSecretId: 'AKIDJXggU7vpupY5RetcKrCLI3czAA1g7QYU',
qcloudSecretKey: 'ta7av65sTt7TjnfOvGPPFtKI9pKdlgml',
wxMessageToken: 'weixinmsgtoken',
networkTimeout: 30000
//线上配置----------------------------
}
module.exports = CONF