Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

203 řádky
5.4 KiB

  1. log:
  2. level: DEBUG
  3. # Redis 连接参数 (RedisProperties)
  4. redisson:
  5. hosts: redis://localhost:6379
  6. # 1:单机 2:集群 3:哨兵
  7. mode: 1
  8. masterName: mymaster
  9. database: 0
  10. password:
  11. timeout: 2000
  12. model: standalone
  13. server:
  14. port: 8018
  15. tomcat:
  16. uri-encoding: UTF-8
  17. main:
  18. banner-mode: "off"
  19. servlet:
  20. context-path: /
  21. session:
  22. timeout: 1800
  23. # 数据库连接配置
  24. mysql:
  25. host: 39.107.77.235
  26. port: 3308
  27. database: aobei
  28. username: root
  29. password: Digimeta@123
  30. # 业务相关配置
  31. biz:
  32. http:
  33. referer: http://localhost:${server.port}
  34. work:
  35. # 工作目录
  36. dir: /usr/local
  37. # 显示设备
  38. display:
  39. # 识别出人脸后,是否推送到显示设备;1表示接收,0表示不接收
  40. enable: true
  41. # 显示设备默认ID,比如盒子,网络电视等
  42. id: display1
  43. # 推送考勤时间范围,格式HH:mm:ss
  44. pushTime:
  45. begin: "00:00:00"
  46. finish: "16:00:00"
  47. # 人脸相关配置
  48. faceFile:
  49. # 图片存储类型:1.本地存储 2.图片存储服务器
  50. storageType: 1
  51. register:
  52. # 人脸底图文件夹
  53. path: ${biz.work.dir}/face_img
  54. # 人脸底图压缩图文件夹
  55. compress: ${faceFile.register.path}/compress
  56. # 人脸照片局域网访问路径,建议将localhost改为局域网内IP
  57. url: http://10.110.132.139:${server.port}/face01
  58. passRecord:
  59. path: ${biz.work.dir}/pass_img
  60. compress: ${faceFile.passRecord.path}/compress
  61. # 图片存储服务器配置
  62. imgServer:
  63. # 服务器地址
  64. url: http://localhost:4869
  65. # 人脸服务器配置信息
  66. faceServer:
  67. mode: ${mode:standalone}
  68. proxyPort: 80
  69. proxyHost: http://localhost:${proxyPort:80}
  70. faceOpsProxy: ${faceServer.proxyHost}/thinkface/user/{endpoint}
  71. port: 60001
  72. faceEngine: http://10.110.133.48:${faceServer.port}/thinkface/user/{endpoint}
  73. appId: 6201801228848784
  74. secret: 6e8e78454pkrbsm5rfe5evgd
  75. capture:
  76. # 抓拍的人脸图片目录
  77. path: /usr/local/
  78. # 考勤
  79. attendance:
  80. # 是否开启考勤统计
  81. enable: true
  82. # 考勤统计时间,默认凌晨02:00:00
  83. cron: 0 46 15 * * ?
  84. shift:
  85. # 默认班次
  86. defaultId: 1
  87. # 上班时间前3小时以后算作有效考勤
  88. allowAdvanceHours: -5
  89. # 下班时间多6小时内算作有效考勤
  90. allowDelayHours: 5
  91. # 上班时间往后推3个小时当作上下班分界时间点
  92. delayHoursOnStartWork: 3
  93. #默认班次信息
  94. default-shift: "白班班次"
  95. default-start-work-time: "09:00"
  96. default-end-work-time: "18:00"
  97. default-work-late-minute: 30
  98. default-work-early-minute: 30
  99. default-attendance-date: 2,3,4,5,6
  100. # 上下班最小间隔时间,单位:分钟
  101. minMinuteLength: 30
  102. #考勤状态
  103. unpunch: "未打卡"
  104. missing: "漏打卡"
  105. leave-early: "早退"
  106. late: "迟到"
  107. normal: "正常"
  108. late-early-and-late: "迟到 / 早退"
  109. # 机构
  110. office:
  111. # 顶级机构ID
  112. topOffice: 2000
  113. # 默认机构ID
  114. defaultOffice: 2000003
  115. # 设备
  116. device:
  117. # 初始设备ID
  118. firstDevice: 1812001
  119. offlineCheck: true
  120. permission:
  121. dateTimeSwitch: 1
  122. message:
  123. redis:
  124. mq:
  125. enable: true
  126. topic: queue:THINKFACE_API_DEV
  127. # 数据库备份,要求系统安装mysqldump
  128. backup:
  129. # 是否开启备份功能
  130. enable: true
  131. # 导出sql文件存储目录
  132. path: ${biz.work.dir}/ThinkFaceBackup
  133. # 导出web模块数据库命令
  134. #web: mysqldump --single-transaction -h${mysql.host} -u${mysql.username} -p${mysql.password} ${mysql.database} tf_project_admin tf_project_admin_device tf_project_emp tf_project_emp_device tf_project_device tf_project_shift tf_project_daily_attendance tf_project_monthly_attendance > ${backup.path}/web.sql
  135. web: mysqldump --single-transaction -h${mysql.host} -u${mysql.username} -p${mysql.password} ${mysql.database} tf_project_admin tf_project_emp tf_project_emp_device tf_project_device tf_project_shift tf_project_daily_attendance tf_project_monthly_attendance > ${backup.path}/web.sql
  136. # 导出人脸数据库命令
  137. face: mysqldump --single-transaction -h${mysql.host} -u${mysql.username} -p${mysql.password} lenovo_face_${faceServer.port} > ${backup.path}/face.sql
  138. # 数据目录
  139. datadir: ${biz.work.dir}/ThinkFaceBackup/datadir
  140. # URL
  141. url: /backup
  142. padPath: ${backup.path}/pad
  143. gatePath: ${backup.path}/gatePath
  144. # NTP授时服务
  145. ntpServer:
  146. # 是否开启NTP授时功能
  147. enable: true
  148. # NTP服务器地址
  149. address: ntp1.aliyun.com
  150. # 访客模式配置
  151. guest:
  152. # 定时清除注册用户
  153. cleaner:
  154. # 是否开启定时清除访客功能, 默认 false
  155. isAutoClean: ${IS_AUTO_CLEAN_GUEST:false}
  156. # 多久以前注册的访客, 默认两小时
  157. passedSeconds: 60
  158. # 每30秒清除一次访客
  159. cleanerCron: ${GUEST_CLEANER_CRON:30 * * * * ?}
  160. # 指定机构ID清除访客,多个机构ID用逗号拼接
  161. officeIds: "3445233789440458262"
  162. # 移动端网页配置
  163. mobile:
  164. # 前端应用存放服务器路径
  165. htmlLocation: C:/Users/Lenovo/Desktop/visitor
  166. mqttClient:
  167. serverHost: 8.131.78.156
  168. serverPort: 1883
  169. clientId: mqtt_clientid_dev_2002
  170. faceServerI:
  171. ip: 123.56.73.158
  172. port: 30306
  173. user: lecooai_hw01
  174. password: lecooai@2021
  175. hasAuthorize: false
  176. faceServerII:
  177. ip: 39.105.51.226
  178. port: 5000
  179. user: lecooai_hw01
  180. password: lecooai@2021
  181. hasAuthorize: false