-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.json
40 lines (40 loc) · 1.56 KB
/
config.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
{
"database": {
"Dialect": "mysql",
"Database": "goes", /*数据库名*/
"User": "root",
"Password": "root",
"Charset": "utf8", /*字符集 utf8 */
"Host": "127.0.0.1", /*数据库地址*/
"Port": 3306, /*数据库端口*/
"MaxIdleConns": 5, /*空闲时最大的连接数*/
"MaxOpenConns": 10 /*最大的连接数*/
},
"server": {
"Env": "dev",
"SessionID": "goesid",
"Port": 8080, /*服务监听的端口*/
"PageSize": 20, /*默认每页栋条数*/
"MaxPageSize": 200, /*每页最大条数*/
"MinPageSize": 10, /*每页最小条数*/
"MinOrder": 0, /*最小的排序号*/
"MaxOrder": 10000, /*最大的排序号*/
"MaxNameLength": 100, /*最大的名称长度*/
"MaxContentLength": 10000, /*最大的内容长度*/
"MaxArticleCateCount": 6, /*文章最多的分类个数*/
"MaxCommentLength": 5000 /*最大评论个数*/
},
"web": {
"Page": {
"title": "kdn", /*网站标题*/
"JavascriptPath": "/javascripts", /*前端JS请求地址*/
"ImagePath": "/images", /*前端图片请求地址*/
"CssPath": "/styles" /*前端Css请求地址*/
},
"Env": "dev",
"UseProxy": false, /*node.js发请求是否使用代理*/
"ProxyUri": "http://127.0.0.1:8881", /*代理地址与端口*/
"Port": 8020, /*前端node.js监听的端口*/
"StaticPort": 8021 /*前端静态文件服务器监听栋端口(本地开发)*/
}
}