# 后台配置文件
后台 appsettings.json 配置文件说明
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"VirtualPath": {
"StaticFile": "C:\\xx\\xx", //配置的虚拟目录文件所在路径
"FolderName": "/Static" //访问时此路径时的别名
},
"AppUrls": {
},
"Connection": {
"DBType": "", //数据库链接配置,看后台配置文件说明
"UseSqlserver2008": false, //是否使用Sqlserver2008
// sqlserver系统库
"DbConnectionString": "",
},
"Secret": { //秘钥配置
"JWT": "xxx", //JWT
"Audience": "vol.core",
"Issuer": "VolPro.core.owner",
"User": "xxx", //这里请一定要修改随便换个值
"DB": "",
"Redis": "xxxx"
},
//后台跨域配置
"CorsUrls": "http://localhost:9000,http://xx.xx.xx.xx:9000",
"ExpMinutes": "30", //JWT有效期(分钟),
"CreateMember": { //写入数据库时,需要记录创建人/创建时间/创建日期对应的字段
"UserIdField": "CreateID",
"UserNameField": "Creator",
"DateField": "CreateDate"
},
"ModifyMember": { //修改同上
"UserIdField": "ModifyID",
"UserNameField": "Modifier",
"DateField": "ModifyDate"
}, //演示系统过滤Action,只有超级管理员才能操作,其他用户只有只读权限
"GlobalFilter": {
"Message": "演示环境,当前帐号没有开启此功能权限",
"Enable": "false", //开启Action过滤
"Actions": [ "Update", "Del", "Add", "SavePermission"]
},
"Kafka": {
//是否使用生产者
"UseProducer": false,
"ProducerSettings": {
"BootstrapServers": "192.168.20.241:9092", //confluent cloud bootstrap servers
"SaslMechanism": "Plain",
"SecurityProtocol": "SaslSsl",
"SaslUsername": "<confluent cloud key>",
"SaslPassword": "<confluent cloud secret>"
},
//是否使用消费者
"UseConsumer": false,
//是否持续监听消费者订阅 用于while循环订阅
"IsConsumerSubscribe": true,
"ConsumerSettings": {
"BootstrapServers": "192.168.20.241:9092", //confluent cloud bootstrap servers
"GroupId": "amcl_group", //web-example-group
"SaslMechanism": "Plain",
"SecurityProtocol": "SaslSsl",
"SaslUsername": "<confluent cloud key>",
"SaslPassword": "<confluent cloud secret>"
},
"Topics": {
"TestTopic": "alarm_topic"
}
},
"Mail": {
"Address": "xxx@163.com", //发件的邮箱
"Host": "smtp.163.com",
"Name": "vol", //发送人名称
"Port": 25,
"EnableSsl": false,
"AuthPwd": "授权密码" //授权密码(对应邮箱设置里面去开启)
},
"UseSnow": "1", //是否使用雪花算法(表的主键字段为bigint类型时启用雪花算法生成唯一id; 1=是,0=否)
"QuartzAccessKey": "xxxxxxxx", //定时任务的值,请自行修改
"LogicDelField": "IsDel", //逻辑删除字段(对应表字段,逻辑删除只会将字段的值设置为1,默认是0)
"TenancyField": "TenancyId", //表的租户字段(使用动态分库功能此字段用不上)
"UseDynamicShareDB": "0", //使用动态分库(每个客户对应一个独立数据库)
"DBPath": "E:\\xx\\", //数据库所在位置(动态生成数据库时使用)
"DBBackPath": "E:\\xxx\\dbbak", //数据库备份所在位置(动态生成数据库时使用)
"UserAuth": "0", //是否使用用户权限(限制只能看到指定用户创建的数据,用户管理页面的操作列可以看到此功能,设置为1后生效)
"ModelInService": "0", //表的model类是否生成到当前业务类库下(默认都在VolPro.Entity)
"FileAuth": "0" //启用静态文件访问授权
}
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# 前端配置文件
前端mian.js文件配置
app.config.globalProperties.$global = {
layout:'left',//菜单布局方式:classics=经典导航,top=顶部导航,left=侧边导航
theme:"dark",//默认布局颜色:dark、blue、red、orange、green
menuSearch:true,//菜单是否启用搜索功能
table: {
smallCell:true,//表格单元格大小
useTag: true //table组件下拉框数据源的字段是否显示背景颜色
},
border: true,//table表格是否显示边框
lang: true, //是否使用多语言
labelPosition:"top",//表单(弹出框表单)标签显示位置,可选值,top、left
db: true, //是否使用分库
signalR: true, //是否开启signalR
audit: {
//审核选项
data: [
{ text: '通过', value: 1 },
{ text: '拒绝', value: 3 },
{ text: '驳回', value: 4 }
],
status: [0, 2] //审核中的数据
// 待审核 = 0,
// 审核通过 = 1,
// 审核中 = 2,
// 审核未通过 = 3,
// 驳回 = 4
}
};
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
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
← 调试 前端Api接口参数传递 →