-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
62 lines (53 loc) · 1.92 KB
/
config.yaml
File metadata and controls
62 lines (53 loc) · 1.92 KB
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
# zldface_server Global Configuration
# zap logger configuration
zap:
level: 'info'
format: 'console'
prefix: '[ZLDFace-Server]'
director: ${LOGGING_DIR:log}
link-name: 'latest_log'
show-line: true
encode-level: 'LowercaseLevelEncoder'
stacktrace-key: 'stacktrace'
log-in-console: true
# redis configuration
redis:
db: ${REDIS_CACHE_DBNO:2}
url: ${REDIS_CACHE:redis://127.0.0.1:6379/}
# system configuration
system:
debug: ${DEBUG:True}
addr: 8888
multipoint: true # 是否多节点部署
multipartmemory: ${MULTIPART_MEMORY:10485760}
matchconcurrency: ${MATCH_CONCURRENCY:20}
# mysql connect configuration
mysql:
host: ${MYSQL_HOST:127.0.0.1}
port: ${MYSQL_PORT:3306}
user: ${MYSQL_USER:zldtest}
password: ${MYSQL_PASSWORD:Khfdf*7123gdUIUYf}
db: ${MYSQL_DB:zldtest}
config: 'charset=utf8mb4&parseTime=True&loc=Local'
max-idle-conns: 10
max-open-conns: 100
log-mode: false
log-zap: "warn"
slow-log: 200 # 慢日志200ms, DEBUG模式为1ms
# storage configuration
storage:
regdir: ${REGISTER_IMG_DIR:face/reg/} # 注册人脸照片路径
verdir: ${HPFACE_IMG_DIR:face/ver/} # 识别人脸照片路径
# 认证方式, 可自定义实现, 然后修改配置. DEBUG=True不开启认证
auth: 'OAuth2'
# oauth2.0认证方式,因为只有一个应用接入,暂时只做一个superToken
oauth2:
superToken: ${SUPER_TOKEN:5kcUmuywagv99+asfs0f-b$#}
arcsoft:
expiredAt: '2021-09-02' # 因免费版一年之后需要重新激活,如格式不正确则不报警, 如果是永久激活则不需要配置
alarmDays: 3 # 在expiredAt之前几天会预警,建议大于3天。配置0则关闭报警
alarmEmalTo: '' # 设置邮箱,多个邮箱请用;隔开, 不配置或未空则不发邮件
email: # 邮箱服务器的配置
server: 'host:port' # 邮箱服务器, 支持25和465端口
user: 'user'
password: 'password'