|
- log:
- level: DEBUG
-
- # Redis 连接参数 (RedisProperties)
- redisson:
- hosts: redis://localhost:6379
- # 1:单机 2:集群 3:哨兵
- mode: 1
- masterName: mymaster
- database: 0
- password:
- timeout: 2000
-
- model: standalone
-
- server:
- port: 8018
- tomcat:
- uri-encoding: UTF-8
- main:
- banner-mode: "off"
- servlet:
- context-path: /
- session:
- timeout: 1800
-
- # 数据库连接配置
- mysql:
- host: 39.107.77.235
- port: 3308
- database: aobei
- username: root
- password: Digimeta@123
-
- # 业务相关配置
- biz:
- http:
- referer: http://localhost:${server.port}
- work:
- # 工作目录
- dir: /usr/local
-
- # 显示设备
- display:
- # 识别出人脸后,是否推送到显示设备;1表示接收,0表示不接收
- enable: true
- # 显示设备默认ID,比如盒子,网络电视等
- id: display1
- # 推送考勤时间范围,格式HH:mm:ss
- pushTime:
- begin: "00:00:00"
- finish: "16:00:00"
-
- # 人脸相关配置
- faceFile:
- # 图片存储类型:1.本地存储 2.图片存储服务器
- storageType: 1
- register:
- # 人脸底图文件夹
- path: ${biz.work.dir}/face_img
- # 人脸底图压缩图文件夹
- compress: ${faceFile.register.path}/compress
- # 人脸照片局域网访问路径,建议将localhost改为局域网内IP
- url: http://10.110.132.139:${server.port}/face01
- passRecord:
- path: ${biz.work.dir}/pass_img
- compress: ${faceFile.passRecord.path}/compress
- # 图片存储服务器配置
- imgServer:
- # 服务器地址
- url: http://localhost:4869
-
- # 人脸服务器配置信息
- faceServer:
- mode: ${mode:standalone}
- proxyPort: 80
- proxyHost: http://localhost:${proxyPort:80}
- faceOpsProxy: ${faceServer.proxyHost}/thinkface/user/{endpoint}
- port: 60001
- faceEngine: http://10.110.133.48:${faceServer.port}/thinkface/user/{endpoint}
- appId: 6201801228848784
- secret: 6e8e78454pkrbsm5rfe5evgd
- capture:
- # 抓拍的人脸图片目录
- path: /usr/local/
-
- # 考勤
- attendance:
- # 是否开启考勤统计
- enable: true
- # 考勤统计时间,默认凌晨02:00:00
- cron: 0 46 15 * * ?
- shift:
- # 默认班次
- defaultId: 1
- # 上班时间前3小时以后算作有效考勤
- allowAdvanceHours: -5
- # 下班时间多6小时内算作有效考勤
- allowDelayHours: 5
- # 上班时间往后推3个小时当作上下班分界时间点
- delayHoursOnStartWork: 3
- #默认班次信息
- default-shift: "白班班次"
- default-start-work-time: "09:00"
- default-end-work-time: "18:00"
- default-work-late-minute: 30
- default-work-early-minute: 30
- default-attendance-date: 2,3,4,5,6
- # 上下班最小间隔时间,单位:分钟
- minMinuteLength: 30
- #考勤状态
- unpunch: "未打卡"
- missing: "漏打卡"
- leave-early: "早退"
- late: "迟到"
- normal: "正常"
- late-early-and-late: "迟到 / 早退"
-
- # 机构
- office:
- # 顶级机构ID
- topOffice: 2000
- # 默认机构ID
- defaultOffice: 2000003
-
- # 设备
- device:
- # 初始设备ID
- firstDevice: 1812001
- offlineCheck: true
-
- permission:
- dateTimeSwitch: 1
-
- message:
- redis:
- mq:
- enable: true
- topic: queue:THINKFACE_API_DEV
-
- # 数据库备份,要求系统安装mysqldump
- backup:
- # 是否开启备份功能
- enable: true
- # 导出sql文件存储目录
- path: ${biz.work.dir}/ThinkFaceBackup
- # 导出web模块数据库命令
- #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
- 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
- # 导出人脸数据库命令
- face: mysqldump --single-transaction -h${mysql.host} -u${mysql.username} -p${mysql.password} lenovo_face_${faceServer.port} > ${backup.path}/face.sql
- # 数据目录
- datadir: ${biz.work.dir}/ThinkFaceBackup/datadir
- # URL
- url: /backup
-
- padPath: ${backup.path}/pad
-
- gatePath: ${backup.path}/gatePath
-
- # NTP授时服务
- ntpServer:
- # 是否开启NTP授时功能
- enable: true
- # NTP服务器地址
- address: ntp1.aliyun.com
-
- # 访客模式配置
- guest:
- # 定时清除注册用户
- cleaner:
- # 是否开启定时清除访客功能, 默认 false
- isAutoClean: ${IS_AUTO_CLEAN_GUEST:false}
- # 多久以前注册的访客, 默认两小时
- passedSeconds: 60
- # 每30秒清除一次访客
- cleanerCron: ${GUEST_CLEANER_CRON:30 * * * * ?}
- # 指定机构ID清除访客,多个机构ID用逗号拼接
- officeIds: "3445233789440458262"
-
- # 移动端网页配置
- mobile:
- # 前端应用存放服务器路径
- htmlLocation: C:/Users/Lenovo/Desktop/visitor
-
- mqttClient:
- serverHost: 8.131.78.156
- serverPort: 1883
- clientId: mqtt_clientid_dev_2002
- faceServerI:
- ip: 123.56.73.158
- port: 30306
- user: lecooai_hw01
- password: lecooai@2021
- hasAuthorize: false
-
- faceServerII:
- ip: 39.105.51.226
- port: 5000
- user: lecooai_hw01
- password: lecooai@2021
- hasAuthorize: false
|