forked from shen100/wemall
-
Notifications
You must be signed in to change notification settings - Fork 9
/
configuration.dev.json
65 lines (65 loc) · 3.07 KB
/
configuration.dev.json
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
{
"webPoweredBy": "wemall", /*前端node.js加的X-Powered-By*/
"apiPoweredBy": "wemall api", /*后台go加的X-Powered-By*/
"database": {
"Dialect" : "mysql",
"Database" : "wemall",
"User" : "root",
"Password" : "test1234",
"Charset" : "utf8",
"SQLLog" : false, /*是否输出SQL*/
"URL" : "", /*数据库连接地址*/
"MaxIdleConns" : 5, /*空闲时最大的连接数*/
"MaxOpenConns" : 10 /*最大的连接数*/
},
"nodejs": {
"page": {
"title" : "wemall-微商城", /*网站标题*/
"sitePath" : "", /*网站前缀,适用于子应用的场景*/
"jsPath" : "/javascripts", /*前端JS请求地址前缀*/
"imagePath" : "/images", /*前端图片请求地址前缀*/
"cssPath" : "/styles", /*前端css请求地址前缀*/
"ueditorURL" : "/ueditor/" /*前端ueditor请求地址前缀*/
},
"env" : "development", /*模式(开发,测试,产品)*/
"useProxy" : false, /*node.js发请求是否使用代理*/
"proxyUri" : "http://127.0.0.1:8881", /*代理地址及端口*/
"port" : 8010, /*前端node.js监听的端口*/
"staticPort" : 8011 /*前端静态文件服务器监听的端口(本地开发时使用)*/
},
"go": {
"Debug" : true, /*是否是debug模式*/
"UploadImgDir" : "/Users/liushen/dev/upload/img", /*图片上传的目录*/
"ImgPath" : "/upload/img", /*上传后的图片请求地址前缀*/
"Port" : 8012, /*go监听的端口*/
"SessionID" : "sid", /*后台设置的session id*/
"MaxOrder" : 10000, /*最大的排序号*/
"MinOrder" : 0, /*最小的排序号*/
"PageSize" : 20, /*默认每页的条数*/
"MaxPageSize" : 100, /*每页最大的条数*/
"MinPageSize" : 20, /*每页最小的条数*/
"MaxNameLen" : 100, /*最大的名称长度*/
"MaxRemarkLen" : 500, /*最大的备注长度*/
"MaxContentLen" : 10000, /*最大的内容长度*/
"MaxProductCateCount" : 6, /*商品最多的分类个数*/
"MaxProductImgCount" : 6 /*商品最多的图片集个数*/
},
"weApp": {
/*code换取session_key*/
"CodeToSessURL" : "https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={code}&grant_type=authorization_code",
"AppID" : "", /*小程序ID*/
"Secret" : "" /*小程序密钥*/
},
"software": {
"name" : "wemall微商城", /*软件名称*/
"version" : "1.0.0", /*软件版本*/
"officialURL" : "https://www.shen100.com" /*官网地址*/
},
"api": {
"Prefix" : "/api", /*api服务请求前缀*/
"URL" : "http://127.0.0.1:8012/api" /*api服务请求地址(给node.js调用)*/
},
"docs": {
"github": "https://github.com/shen100/wemall" /*wemall项目github地址*/
}
}