平台配置文件说明
本章节主要讲述平台支持的配置文件以及各项配置相关的用途说明。
系统配置文件分成两类:

local目录下的配置文件

配置样例文件位于localSample目录.

node.cfg

用于标识当前节点的名称.
1
127.0.0.1
Copied!

config目录下的配置文件

配置样例文件位于configSample目录.

appStyle.json

配置原生app移动端样式和内容.
1
{
2
"indexType": "default",
3
"indexPortal": "",
4
"nativeAppList": [],
5
"images": [],
6
"###indexType": "首页展现类型,default是移动端原来的首页,portal是门户.###",
7
"###indexPortal": "门户首页.###",
8
"###nativeAppList": "导航设置###",
9
"###images": "图片设置.###"
10
}
Copied!

bindLogo.png

扫描二维码登录的二维码中心标识图片,长68px,宽68px.

centerServer.json

center服务器配置.
1
{
2
"enable": true,
3
"order": 0.0,
4
"sslEnable": false,
5
"redeploy": true,
6
"port": 20030.0,
7
"httpProtocol": "",
8
"proxyHost": "",
9
"proxyPort": 20030.0,
10
"scanInterval": 0.0,
11
"configApiEnable": true,
12
"###enable": "是否启用###",
13
"###order": "center节点顺序,顺序排列0,1,2...###",
14
"###sslEnable": "是否启用ssl传输加密,如果启用将使用config/keystore文件作为密钥文件.使用config/token.json文件中的sslKeyStorePassword字段为密钥密码,sslKeyManagerPassword为管理密码.###",
15
"###redeploy": "每次启动是否重新部署所有应用.###",
16
"###port": "端口,center服务器端口,默认20030###",
17
"###httpProtocol": "对外http访问协议,http/https###",
18
"###proxyHost": "代理主机,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问地址.###",
19
"###proxyPort": "代理端口,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问端口.###",
20
"###scanInterval": "重新扫描war包时间间隔(秒)###",
21
"###config": "其他参数###",
22
"###configApiEnable": "允许通过Api修改config###"
23
}
Copied!

collect.json

云服务器配置.
1
{
2
"enable": false,
3
"name": "",
4
"password": "",
5
"title": "",
6
"footer": "",
7
"appUrl": "",
8
"server": "",
9
"port": 20080.0,
10
"sslEnable": false,
11
"###enable": "是否启用连接到云平台###",
12
"###name": "云平台账户名称,同时显示在登录页面底部.###",
13
"###password": "云平台密码###",
14
"###title": "系统标题,同时显示在登录页面上部.###",
15
"###footer": "底部申明###",
16
"###appUrl": "app下载地址###",
17
"###server": "云平台服务器地址###",
18
"###port": "云平台端口###",
19
"###sslEnable": "云平台连接是否启用ssl###",
20
"###secret": "推送消息secret###",
21
"###key": "推送消息key###"
22
}
Copied!

dingding.json

钉钉配置
1
{
2
"enable": false,
3
"corpId": "",
4
"agentId": "",
5
"appKey": "",
6
"appSecret": "",
7
"syncCron": "10 0/10 * * * ?",
8
"forceSyncCron": "10 45 8,12 * * ?",
9
"oapiAddress": "https://oapi.dingtalk.com",
10
"messageEnable": true,
11
"###enable": "是否启用###",
12
"###corpId": "钉钉corpId###",
13
"###agentId": "agentId###",
14
"###appKey": "应用的key,唯一标识###",
15
"###appSecret": "应用的密钥###",
16
"###syncCron": "组织同步cron,默认每10分钟同步一次.###",
17
"###forceSyncCron": "强制拉入同步cron,默认在每天的8点和12点强制进行同步.###",
18
"###oapiAddress": "oapi服务器地址###",
19
"###messageEnable": "是否启用消息推送###"
20
}
Copied!

dumpRestoreData.json

数据库数据和文件导出设置.
1
{
2
"enable": false,
3
"includes": [],
4
"excludes": [],
5
"batchSize": 2000.0,
6
"###enable": "是否启用.###",
7
"###includes": "导出导入包含对象,可以使用通配符*.###",
8
"###excludes": "导出导入排除对象,可以使用通配符*.###",
9
"###batchSize": "批量对象数量.###"
10
}
Copied!

dumpRestoreStorage.json

数据库数据和文件导入设置.
1
{
2
"includes": [],
3
"excludes": [],
4
"batchSize": 500.0,
5
"redistribute": true,
6
"exceptionInvalidStorage": true,
7
"###enable": "是否启用.###",
8
"###includes": "导出导入包含对象,可以使用通配符*.###",
9
"###excludes": "导出导入排除对象,可以使用通配符*.###",
10
"###batchSize": "批量对象数量.###",
11
"###redistribute": "是否进行重新分布.###",
12
"###exceptionInvalidStorage": "无法获取storage是否升起错误.###"
13
}
Copied!

logLevel.json

日志设置.
1
{
2
"x_program_center": "",
3
"x_processplatform_service_processing": "",
4
"x_processplatform_assemble_surface": "",
5
"x_processplatform_assemble_designer": "",
6
"x_query_assemble_designer": "",
7
"x_query_assemble_surface": "",
8
"x_query_service_processing": "",
9
"x_meeting_assemble_control": "",
10
"x_organization_assemble_authentication": "",
11
"x_organization_assemble_control": "",
12
"x_general_assemble_control": "",
13
"x_file_assemble_control": "",
14
"x_attendance_assemble_control": "",
15
"x_collaboration_core_message": "",
16
"x_organization_core_express": "",
17
"x_query_core_express": "",
18
"x_bbs_assemble_control": "",
19
"x_calendar_assemble_control": "",
20
"x_cms_assemble_control": "",
21
"x_component_assemble_control": "",
22
"x_hotpic_assemble_control": "",
23
"x_message_assemble_communicate": "",
24
"x_mind_assemble_control": "",
25
"x_okr_assemble_control": "",
26
"x_organization_assemble_express": "",
27
"x_organization_assemble_personal": "",
28
"x_portal_assemble_designer": "",
29
"x_portal_assemble_surface": "",
30
"x_processplatform_assemble_bam": "",
31
"audit": {
32
"###enable": "是否启用审计日志###",
33
"###logSize": "审计日志保留天数###"
34
},
35
"###x_program_center": "是否启用调试###",
36
"###x_processplatform_service_processing": "是否启用调试###",
37
"###x_processplatform_assemble_surface": "是否启用调试###",
38
"###x_processplatform_assemble_designer": "是否启用调试###",
39
"###x_query_assemble_designer": "是否启用调试###",
40
"###x_query_assemble_surface": "是否启用调试###",
41
"###x_query_service_processing": "是否启用调试###",
42
"###x_meeting_assemble_control": "是否启用调试###",
43
"###x_organization_assemble_authentication": "是否启用调试###",
44
"###x_organization_assemble_control": "是否启用调试###",
45
"###x_general_assemble_control": "是否启用调试###",
46
"###x_file_assemble_control": "是否启用调试###",
47
"###x_attendance_assemble_control": "是否启用调试###",
48
"###x_collaboration_core_message": "是否启用调试###",
49
"###x_organization_core_express": "是否启用调试###",
50
"###x_query_core_express": "是否启用调试###",
51
"###x_bbs_assemble_control": "是否启用调试###",
52
"###x_calendar_assemble_control": "是否启用调试###",
53
"###x_cms_assemble_control": "是否启用调试###",
54
"###x_component_assemble_control": "是否启用调试###",
55
"###x_hotpic_assemble_control": "是否启用调试###",
56
"###x_message_assemble_communicate": "是否启用调试###",
57
"###x_mind_assemble_control": "是否启用调试###",
58
"###x_okr_assemble_control": "是否启用调试###",
59
"###x_organization_assemble_express": "是否启用调试###",
60
"###x_organization_assemble_personal": "是否启用调试###",
61
"###x_portal_assemble_designer": "是否启用调试###",
62
"###x_portal_assemble_surface": "是否启用调试###",
63
"###x_processplatform_assemble_bam": "是否启用调试###",
64
"###audit": "审计日志配置###"
65
}
Copied!

meeting.json

会议管理以及openMeeting连接设置.
1
{
2
"enable": false,
3
"oauth2Id": "5",
4
"port": 5080.0,
5
"host": "127.0.0.1",
6
"user": "xadmin",
7
"pass": "",
8
"anonymousAccessAttachment": false,
9
"###enable": "是否启用###",
10
"###oauth2Id": "openMeeting单点序号###",
11
"###port": "openMeeting端口###",
12
"###host": "openMeeting服务器###",
13
"###user": "openMeeting管理员账户###",
14
"###pass": "openMeeting管理员密码###",
15
"###httpProtocol": "openMeeting协议###",
16
"###anonymousAccessAttachment": "匿名用户是否可以访问附件###"
17
}
Copied!

messages.json

消息配置.
1
{
2
"attachment_editor": {
3
"consumers": [
4
"ws",
5
"pms",
6
"dingding",
7
"zhengwuDingding",
8
"qiyeweixin"
9
]
10
},
11
"attachment_editorCancel": {
12
"consumers": [
13
"ws",
14
"pms",
15
"dingding",
16
"zhengwuDingding",
17
"qiyeweixin"
18
]
19
},
20
"attachment_editorModify": {
21
"consumers": [
22
"ws",
23
"pms",
24
"dingding",
25
"zhengwuDingding",
26
"qiyeweixin"
27
]
28
},
29
"attachment_share": {
30
"consumers": [
31
"ws",
32
"pms",
33
"dingding",
34
"zhengwuDingding",
35
"qiyeweixin"
36
]
37
},
38
"attachment_shareCancel": {
39
"consumers": [
40
"ws",
41
"pms",
42
"dingding",
43
"zhengwuDingding",
44
"qiyeweixin"
45
]
46
},
47
"meeting_delete": {
48
"consumers": [
49
"ws",
50
"pms",
51
"dingding",
52
"zhengwuDingding",
53
"qiyeweixin"
54
]
55
},
56
"meeting_invite": {
57
"consumers": [
58
"ws",
59
"pms",
60
"dingding",
61
"zhengwuDingding",
62
"qiyeweixin"
63
]
64
},
65
"readCompleted_create": {
66
"consumers": []
67
},
68
"readCompleted_delete": {
69
"consumers": []
70
},
71
"read_create": {
72
"consumers": [
73
"ws",
74
"pms",
75
"dingding",
76
"zhengwuDingding",
77
"qiyeweixin"
78
]
79
},
80
"read_delete": {
81
"consumers": []
82
},
83
"taskCompleted_create": {
84
"consumers": []
85
},
86
"taskCompleted_delete": {
87
"consumers": []
88
},
89
"task_create": {
90
"consumers": [
91
"ws",
92
"pms",
93
"dingding",
94
"zhengwuDingding",
95
"qiyeweixin"
96
]
97
},
98
"task_delete": {
99
"consumers": []
100
},
101
"task_press": {
102
"consumers": [
103
"ws",
104
"pms",
105
"dingding",
106
"zhengwuDingding",
107
"qiyeweixin"
108
]
109
},
110
"###clean": "清理设置.###",
111
"clean": {
112
"enable": true,
113
"cron": "30 30 6 * * ?",
114
"keep": 7.0,
115
"###enable": "是否启用###",
116
"###cron": "定时cron表达式###",
117
"###keep": "消息保留天数###"
118
}
119
}
Copied!

node_127.0.0.1.json

节点配置.
1
{
2
"enable": true,
3
"isPrimaryCenter": true,
4
"center": {
5
"enable": true,
6
"order": 0.0,
7
"sslEnable": false,
8
"redeploy": true,
9
"port": 20030.0,
10
"httpProtocol": "",
11
"proxyHost": "",
12
"proxyPort": 20030.0,
13
"scanInterval": 0.0,
14
"configApiEnable": true,
15
"###enable": "是否启用###",
16
"###order": "center节点顺序,顺序排列0,1,2...###",
17
"###sslEnable": "是否启用ssl传输加密,如果启用将使用config/keystore文件作为密钥文件.使用config/token.json文件中的sslKeyStorePassword字段为密钥密码,sslKeyManagerPassword为管理密码.###",
18
"###redeploy": "每次启动是否重新部署所有应用.###",
19
"###port": "端口,center服务器端口,默认20030###",
20
"###httpProtocol": "对外http访问协议,http/https###",
21
"###proxyHost": "代理主机,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问地址.###",
22
"###proxyPort": "代理端口,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问端口.###",
23
"###scanInterval": "重新扫描war包时间间隔(秒)###",
24
"###config": "其他参数###",
25
"###configApiEnable": "允许通过Api修改config###"
26
},
27
"application": {
28
"enable": true,
29
"port": 20020.0,
30
"sslEnable": false,
31
"proxyHost": "",
32
"proxyPort": 20020.0,
33
"redeploy": true,
34
"scanInterval": 0.0,
35
"includes": [],
36
"excludes": [],
37
"weights": [],
38
"###enable": "是否启用###",
39
"###port": "http/https端口,负责向前端提供数据访问接口.默认为20020端口.###",
40
"###sslEnable": "是否启用ssl传输加密,如果启用将使用config/keystore文件作为密钥文件.使用config/token.json文件中的sslKeyStorePassword字段为密钥密码,sslKeyManagerPassword为管理密码.###",
41
"###proxyHost": "代理主机,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问地址.###",
42
"###proxyPort": "代理端口,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问端口.###",
43
"###redeploy": "每次启动是否重载全部应用.###",
44
"###scanInterval": "应用reload扫描间隔,\u003c0 表示不会reload应用,扫描到应用文件发生了变化.###",
45
"###includes": "承载的应用,在集群环境下可以选择仅承载部分应用以降低服务器负载,可以使用*作为通配符.###",
46
"###excludes": "选择不承载的应用,和includes的值配合使用可以选择或者排除承载的应用,可以使用*作为通配符.###",
47
"###weights": "设置应用的权重,在集群环境中,一个应用可以部署多个实例提供负载均衡.通过合计占比来分配应用占比.###"
48
},
49
"web": {
50
"enable": true,
51
"sslEnable": false,
52
"proxyHost": "",
53
"weight": 100.0,
54
"dirAllowed": false,
55
"###enable": "是否启用###",
56
"###port": "http/https端口,用户输入网址后实际访问的第一个端口.http协议默认为80端口,https默认为443端口.###",
57
"###sslEnable": "是否启用ssl传输加密,如果启用将使用config/keystore文件作为密钥文件.使用config/token.json文件中的sslKeyStorePassword字段为密钥密码,sslKeyManagerPassword为管理密码.###",
58
"###proxyHost": "代理主机,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问地址.###",
59
"###proxyPort": "代理端口,当服务器是通过apache/nginx等代理服务器映射到公网或者通过路由器做端口映射,在这样的情况下需要设置此地址以标明公网访问端口.###",
60
"###weight": "设置权重.当前没有作用,###",
61
"###dirAllowed": "允许浏览目录,###"
62
},
63
"data": {
64
"enable": true,
65
"tcpPort": 20050.0,
66
"webPort": 20051.0,
67
"includes": [],
68
"excludes": [],
69
"jmxEnable": false,
70
"cacheSize": 512.0,
71
"logLevel": "WARN",
72
"###enable": "是否启用,如果没有可用的externalDataSources.json文件,那么默认会在节点中启用本地的H2数据库作为默认的数据库.###",
73
"###tcpPort": "H2数据库jdbc连接端口,登录的用户名:sa,密码为xadmin的密码.数据库创建在/o2server/local/repository/data/X.mv.db,一旦数据库文件被创建,那么该数据库的密码被创建.###",
74
"###webPort": "H2数据库web端口,H2提供一个web端的client,此端口为web端client的访问端口.用户名sa,密码为xadmin数据库初始创建的密码.###",
75
"###includes": "设置此数据库存储的类,默认情况下存储所有类型,如果需要对每个类进行单独的控制以达到高性能,可以将不同的类存储到不同的节点上提高性能.可以使用通配符*###",
76
"###excludes": "在此节点上不存储的类,和includes一起设置实际存储的类,可以使用通配符*###",
77
"###jmxEnable": "是否启动jmx,如果启用,可以通过本地的jmx客户端进行访问,不支持远程jmx客户端.###",
78
"###cacheSize": "H2数据库缓存大小,设置H2用于作为缓存的内存大小,以M作为单位,这里默认为512M.###",
79
"###logLevel": "默认日志级别###"
80
},
81
"storage": {
82
"enable": true,
83
"port": 20040.0,
84
"sslEnable": false,
85
"name": "251",
86
"accounts": [],
87
"###enable": "是否启用,对于二进制流文件,比如附件,图片等存储在单独的文件服务器中,可以支持多种文件服务器,默认情况下使用ftp服务器作为文件服务器,每个节点可以启动一个文件服务器以提供高性能.###",
88
"###port": "ftp服务器端口,此端口可以不对外开放,仅有ApplicationServer进行访问,并不直接对用户提供服务.###",
89
"###sslEnable": "是否启用ssl传输加密,如果启用将使用config/keystore文件作为密钥文件.使用config/token.json文件中的sslKeyStorePassword字段为密钥密码,sslKeyManagerPassword为管理密码.###",
90
"###name": "名称,多个节点中不能重名,默认为251.###",
91
"###accounts": "二进制流文件是分多个账号分段存储的,可以单独设置每个分类的存储配置,一般不需要设置.###",
92
"###passivePorts": "ftp传输有主动和被动之分,如果使用了被动传输,设置被动端口范围,默认为29000-30000.###"
93
},
94
"logLevel": "warn",
95
"dumpData": {
96
"enable": false,
97
"cron": "",
98
"size": 14.0,
99
"path": "",
100
"###enable": "是否启用,默认每天凌晨2点进行备份.###",
101
"###cron": "定时任务cron表达式###",
102
"###size": "最大保留份数,超过将自动删除最久的数据.###",
103
"###path": "备份路径###"
104
},
105
"dumpStorage": {
106
"enable": false,
107
"cron": "",
108
"size": 14.0,
109
"path": "",
110
"###enable": "是否启用,默认每天凌晨2点进行备份.###",
111
"###cron": "定时任务cron表达式###",
112
"###size": "最大保留份数,超过将自动删除最久的数据.###",
113
"###path": "备份路径###"
114
},
115
"restoreData": {
116
"cron": "",
117
"path": "",
118
"###enable": "是否启用,默认每天凌晨2点进行备份.###",
119
"###cron": "定时任务cron表达式###",
120
"###path": "恢复路径###"
121
},
122
"restoreStorage": {
123
"cron": "",
124
"path": "",
125
"###enable": "是否启用,默认每天凌晨2点进行备份.###",
126
"###cron": "定时任务cron表达式###",
127
"###path": "恢复路径###"
128
},
129
"nodeAgentEnable": false,
130
"nodeAgentPort": 20010.0,
131
"nodeAgentEncrypt": true,
132
"quickStartWebApp": false,
133
"###enable": "是否启用###",
134
"###isPrimaryCenter": "是否是center节点,仅允许存在一个center节点###",
135
"###center": "Center服务器配置###",
136
"###application": "Application服务器配置###",
137
"###web": "Web服务器配置###",
138
"###data": "Data服务器配置###",
139
"###storage": "Storage服务器配置###",
140
"###logLevel": "日志级别,默认当前节点的slf4j日志级别,通过系统变量\"org.slf4j.simpleLogger.defaultLogLevel\"设置到当前jvm中.###",
141
"###dumpData": "定时数据导出配置###",
142
"###dumpStorage": "定时存储文件导出配置###",
143
"###restoreData": "定时数据导入配置###",
144
"###restoreStorage": "定时存储文件导入配置###",
145
"###logSize": "日志文件保留天数.###",
146
"###auditLogSize": "审计日志文件保留天数.###",
147
"###nodeAgentEnable": "是否启用节点代理###",
148
"###nodeAgentPort": "是否启用节点端口###",
149
"###nodeAgentEncrypt": "是否启用节点代理加密###",
150
"###quickStartWebApp": "是否使用快速应用部署###",
151
"###banner": "服务器控制台启动标识###",
152
"###autoStart": "是否自动启动###"
153
}
Copied!

person.json

用户配置
1
{
2
"MAX_PASSWORDPERIOD": 3650.0,
3
"captchaLogin": true,
4
"codeLogin": true,
5
"bindLogin": true,
6
"faceLogin": true,
7
"password": "(var v \u003d person.getMobile(); return v.substring(v.length - 6))",
8
"passwordPeriod": 0.0,
9
"register": "disable",
10
"superPermission": true,
11
"###captchaLogin": "是否启用验证码登录,默认值:true###",
12
"###codeLogin": "是否启用验证码登录,默认值:true###",
13
"###bindLogin": "是否启用扫描二维码登录,默认值:false###",
14
"###faceLogin": "是否启用刷脸登录,默认值:false###",
15
"###password": "注册初始密码,使用()调用脚本生成初始密码,默认为:(var v \u003d person.getMobile(); return v.substring(v.length - 6))###",
16
"###passwordPeriod": "密码过期时间,0表示不过期,默认值:0###",
17
"###register": "是否允许用户自注册,disable:不允许,captcha通过验证码注册,code:通过短信注册,默认值:disable###",
18
"###superPermission": "是否启用超级管理员权限,默认值:true###",
19
"###mobileRegex": "手机号码校验正则表达式,()表示脚本内容,默认值:(^(\\+)?0{0,2}852\\d{8}$)|(^(\\+)?0{0,2}853\\d{8}$)|(^(\\+)?0{0,2}886\\d{9}$)|(^1(3|4|5|7|8|9)\\d{9}$)###",
20
"###loginPage": "定制登录页面设置.###",
21
"loginPage": {
22
"enable": false,
23
"portal": "",
24
"page": "",
25
"###enable": "是否启用定制登录页面.###",
26
"###portal": "指定登录页面所属的portal,可以用id,name,alias.###",
27
"###page": "指定的登录页面,可以使用name,alias,id###"
28
},
29
"###failureInterval": "登录限制时间(分钟)###",
30
"###failureCount": "尝试登录次数###",
31
"###tokenExpiredMinutes": "token时长,分钟###"
32
}
Copied!

processPlatform.json

流程平台配置
1
{
2
"urge": {
3
"enable": true,
4
"cron": "6 6/10 8-18 * * ?",
5
"###enable": "是否启用###",
6
"###cron": "定时cron表达式.###"
7
},
8
"expire": {
9
"enable": true,
10
"cron": "8 8/10 * * * ?",
11
"auto": "disable",
12
"###enable": "是否启用###",
13
"###cron": "定时cron表达式###",
14
"###auto": "自动处理模式,disable:禁用,neural:人工神经网络,single:仅处理只有一条路由的工作.###"
15
},
16
"delay": {
17
"enable": true,
18
"cron": "2 2/10 * * * ?",
19
"###enable": "是否启用###",
20
"###cron": "定时cron表达式###"
21
},
22
"reorganize": {
23
"enable": true,
24
"cron": "30 15 8,12,14 * * ?",
25
"triggerAfterMinutes": 1440.0,
26
"###enable": "是否启用###",
27
"###cron": "定时cron表达式###",
28
"###triggerAfterMinutes": "当工作滞留设定时间后,将尝试触发工作流转,可以自动处理由于人员变动的引起的工作滞留.###"
29
},
30
"dataMerge": {
31
"enable": false,
32
"cron": "30 30 6 * * ?",
33
"period": 730.0,
34
"###enable": "是否启用###",
35
"###cron": "定时cron表达式###",
36
"###period": "期限,已完成工作结束间隔指定时间进行merge,默认两年后进行merge###"
37
},
38
"maintenanceIdentity": "",
39
"formVersionPeriod": 45.0,
40
"processVersionPeriod": 45.0,
41
"scriptVersionPeriod": 45.0,
42
"docToWordType": "local",
43
"docToWordDefaultFileName": "正文.docx",
44
"docToWordDefaultSite": "$doc",
45
"###press": "提醒设置,设置提醒间隔.###",
46
"press": {
47
"###intervalMinutes": "提醒间隔(分钟)###",
48
"###count": "提醒数量限制.###"
49
},
50
"###urge": "催办任务设置,发现即将过期时发送提醒消息.###",
51
"###expire": "过期任务设置,将执行3个独立任务,1.将已经过了截至时间的待办标记过期,2.触发设置了过期路由的工作,3.如果启用了自动流转,那么开始自动流转,可以选择仅处理唯一路由的工作,或者启动基于MLP的人工神经网络进行处理.###",
52
"###delay": "延时任务设置,定时触发延时任务,当超过延时时间后继续流转.###",
53
"###reorganize": "整理任务设置,将执行4个独立任务,1.删除无效的待办,2.删除流程或者应用不存在的工作,3.将活动节点错误的工作调度到开始节点,4.触发滞留时间过长的工作.###",
54
"###dataMerge": "合并任务设置,定时触发合并任务,将已完成工作的Data从Item表中提取合并到WorkCompleted的Data字段中,默认工作完成后2年开始进行合并.###",
55
"###maintenanceIdentity": "维护身份,当工作发生意外错误,无法找到对应的处理人情况下,先尝试将工作分配给创建身份,如果创建身份也不可获取,那么分配给指定人员,默认情况下这个值为空.###",
56
"###formVersionPeriod": "表单历史版本保留天数.###",
57
"###processVersionPeriod": "流程历史版本保留天数.###",
58
"###scriptVersionPeriod": "脚本历史版本保留天数.###",
59
"###docToWordType": "HTML版式公文转换成Word文件方式,local,cloud.###",
60
"###docToWordDefaultFileName": "HTML版式公文转换成Word文件缺省文件名.###",
61
"###docToWordDefaultSite": "HTML版式公文转换成Word文件缺省site.###"
62
}
Copied!

qiyeweixin.json

企业微信配置.
1
{
2
"enable": false,
3
"syncCron": "10 0/10 * * * ?",
4
"forceSyncCron": "10 45 8,12 * * ?",
5
"apiAddress": "https://qyapi.weixin.qq.com",
6
"corpId": "",
7
"corpSecret": "",
8
"agentId": "",
9
"token": "",
10
"encodingAesKey": "",
11
"messageEnable": true,
12
"###enable": "是否启用.###",
13
"###syncCron": "拉入同步cron,默认每10分钟同步一次.###",
14
"###forceSyncCron": "强制拉入同步cron,默认在每天的8点和12点强制进行同步.###",
15
"###apiAddress": "api服务器地址###",
16
"###corpId": "企业微信corpId###",
17
"###corpSecret": "企业微信corpSecret###",
18
"###agentId": "企业微信agentId###",
19
"###token": "回调token###",
20
"###encodingAesKey": "回调encodingAesKey###",
21
"###messageEnable": "推送消息到企业微信###"
22
}
Copied!

query.json

数据中心配置
1
{
2
"crawlWorkCompleted": {
3
"enable": true,
4
"cron": "50 50 21 * * ?",
5
"count": 5000.0,
6
"###enable": "是否启用###",
7
"###cron": "定时cron表达式.###",
8
"###count": "每次处理的数量,默认为5000,同时每次将重爬最旧的10%以提高数据质量.###"
9
},
10
"crawlWork": {
11
"enable": true,
12
"cron": "45 45 * * * ?",
13
"count": 1000.0,
14
"###enable": "是否启用###",
15
"###cron": "定时cron表达式.###",
16
"###count": "每次处理的数量,默认为1000,同时每次将重爬最旧的25%以提高数据质量.###"
17
},
18
"crawlCms": {
19
"enable": true,
20
"cron": "55 55 8/2 * * ?",
21
"count": 1000.0,
22
"###enable": "是否启用###",
23
"###cron": "定时cron表达式.###",
24
"###count": "每次处理的数量,默认为1000,同时每次将重爬最旧的10%以提高数据质量.###"
25
},
26
"extractOffice": true,
27
"extractPdf": true,
28
"extractText": true,
29
"extractImage": false,
30
"tessLanguage": "chi_sim",
31
"###crawlWorkCompleted": "已完成工作收集器设置.###",
32
"###crawlWork": "工作收集器设置.###",
33
"###crawlCms": "内容管理收集器设置.###",
34
"###extractOffice": "抽取office中的文本.###",
35
"###extractPdf": "抽取pdf中的文本.###",
36
"###extractText": "抽取文本中的文本.###",
37
"###extractImage": "抽取图像中的文本.###",
38
"###tessLanguage": "tess使用语言.###"
39
}
Copied!

startImage.png

服务器启动时显示的logo图标,通过ASCII码展现,图片要求背景透明,长40px,宽20px.

token.json

认证配置.
1
{
2
"key": "",
3
"password": "",
4
"sslKeyStorePassword": "12345678",
5
"sslKeyManagerPassword": "12345678",
6
"initialManager": "xadmin",
7
"initialManagerDistinguishedName": "[email protected]@P",
8
"ssos": [
9
{
10
"enable": false,
11
"client": "",
12
"key": "",
13
"###enable": "是否启用###",
14
"###client": "名称###",
15
"###key": "密钥###"
16
}
17
],
18
"oauths": [
19
{
20
"enable": false,
21
"clientId": "",
22
"mapping": {},
23
"###enable": "是否启用###",
24
"###clientId": "客户端名称###",
25
"###mapping": "返回值###"
26
}
27
],
28
"oauthClients": [
29
{
30
"enable": false,
31
"name": "",
32
"displayName": "",
33
"icon": "",
34
"clientId": "",
35
"clientSecret": "",
36
"authAddress": "",
37
"authParameter": "client_id\u003d{$client_id}\u0026redirect_uri\u003d{$redirect_uri}",
38
"authMethod": "GET",
39
"tokenAddress": "",
40
"tokenParameter": "client_id\u003d{$client_id}\u0026client_secret\u003d{$client_secret}\u0026redirect_uri\u003d{$redirect_uri}\u0026grant_type\u003dauthorization_code\u0026code\u003d{$code}",
41
"tokenMethod": "POST",
42
"tokenType": "json",
43
"infoAddress": "",
44
"infoParameter": "access_token\u003d{$access_token}",
45
"infoMethod": "GET",
46
"infoType": "json",
47
"infoCredentialField": "openId",
48
"infoScriptText": "",
49
"bindingEnable": false,
50
"bindingField": "",
51
"###enable": "是否启用.###",
52
"###name": "名称.###",
53
"###displayName": "显示名称.###",
54
"###icon": "图标.###",
55
"###clientId": "用户oauth2认证的client_id.###",
56
"###clientSecret": "用户oauth2认证的client_secret.###",
57
"###authAddress": "认证后的跳转地址.###",
58
"###authParameter": "请求密钥方法参数.###",
59
"###authMethod": "请求密钥方法.一般为GET###",
60
"###tokenAddress": "请求令牌网址.###",
61
"###tokenParameter": "请求令牌方法参数.###",
62
"###tokenMethod": "请求令牌方法.一般为POST###",
63
"###tokenType": "token信息格式.json格式或者form格式###",
64
"###infoAddress": "请求信息网址.###",
65
"###infoParameter": "请求信息方法参数.###",
66
"###infoMethod": "请求信息方法.一般为GET###",
67
"###infoType": "info信息格式.json格式或者form格式或者script格式###",
68
"###infoCredentialField": "info信息中用于标识个人的字段.###",
69
"###infoScriptText": "info信息中用于标识个人的字段.###",
70
"###bindingEnable": "是否允许绑定到用户,如果允许,用户可以自行绑定.###",
71
"###bindingField": "绑定字段,对端的用户标识,一般为openId绑定到个人字段,可选值为open1Id,open2Id,open3Id,open4Id,open5Id###"
72
}
73
],
74
"###key": "加密用口令的密钥,修改后会导致用户口令验证失败.###",
75
"###password": "初始管理员密码,用于内部数据库和FTP文件服务器,以及http的token加密.###",
76
"###sslKeyStorePassword": "ssl密码###",
77
"###sslKeyManagerPassword": "ssl管理密码###",
78
"###initialManager": "初始管理员名称,目前不可更改.###",
79
"###initialManagerDistinguishedName": "初始管理员DistinguishedName,不可更改.###",
80
"###ssos": "sso登录配置###",
81
"###oauths": "oauth单点登录配置###",
82
"###oauthClients": "作为客户端单点登录配置###"
83
}
Copied!

vfs.json

服务器中使用vfs作为中间协议转换服务,vfs.json用于配置vfs一些特性.
1
{
2
"ftp": {
3
"passive": true
4
}
5
}
Copied!

workTime.json

工作时间,节假日配置
1
{
2
"amStart": "09:00:00",
3
"amEnd": "11:30:00",
4
"pmStart": "13:00:00",
5
"pmEnd": "17:30:00",
6
"holidays": [],
7
"workdays": [],
8
"weekends": [
9
1.0,
10
7.0
11
],
12
"###amStart": "工作时间上午开始时间###",
13
"###amEnd": "工作时间上午结束时间###",
14
"###pmStart": "工作时间下午开始时间###",
15
"###pmEnd": "工作时间下午结束时间###",
16
"###holidays": "固定节假日,格式为[\"2019-01-01\",\"2019-05-01\"]###",
17
"###workdays": "固定工作时间,格式为[\"2019-01-01\",\"2019-05-01\"]###",
18
"###weekends": "周末设定,默认格式为[1,7]其中1代表周日,7代表周六.###"
19
}
Copied!

zhengwuDingding.json

政务钉钉配置.
1
{
2
"enable": false,
3
"appSecret": "",
4
"agentId": "",
5
"syncCron": "10 0/10 * * * ?",
6
"forceSyncCron": "10 45 8,12 * * ?",
7
"oapiAddress": "https://oapi.dingtalk.com",
8
"corpId": "",
9
"corpSecret": "",
10
"titleSplit": [
11
",",
12
"、",
13
",",
14
" ",
15
" "
16
],
17
"personAttributeTitleName": "职务",
18
"nonce": "o2oa",
19
"messageEnable": true,
20
"###enable": "是否启用.###",
21
"###appId": "政务钉钉appId###",
22
"###appSecret": "政务钉钉appSecret###",
23
"###agentId": "政务钉钉agentId###",
24
"###syncCron": "拉入同步cron,默认每10分钟同步一次.###",
25
"###forceSyncCron": "强制拉入同步cron,默认在每天的8点和12点强制进行同步.###",
26
"###oapiAddress": "oapi服务器地址###",
27
"###corpId": "政务钉钉corpId###",
28
"###corpSecret": "政务钉钉corpSecret###",
29
"###titleSplit": "title分隔符###",
30
"###personAttributeTitleName": "title对应个人属性名称###",
31
"###nonce": "政务钉钉nonce###",
32
"###messageEnable": "推送消息到政务钉钉消息###"
33
}
Copied!