feat(infra): add ClamAV file scanner and fail-closed scan configuration
This commit is contained in:
@@ -198,6 +198,15 @@ spring:
|
||||
enabled: false # TODO @管理员:有 bug https://github.com/spring-projects/spring-ai/issues/4917 需要官方修复
|
||||
|
||||
yudao:
|
||||
infra:
|
||||
file-scan:
|
||||
enabled: ${CLAMAV_ENABLED:false}
|
||||
host: ${CLAMAV_HOST:127.0.0.1}
|
||||
port: ${CLAMAV_PORT:3310}
|
||||
connect-timeout-millis: ${CLAMAV_CONNECT_TIMEOUT_MILLIS:2000}
|
||||
read-timeout-millis: ${CLAMAV_READ_TIMEOUT_MILLIS:10000}
|
||||
chunk-bytes: ${CLAMAV_CHUNK_BYTES:8192}
|
||||
max-response-bytes: ${CLAMAV_MAX_RESPONSE_BYTES:4096}
|
||||
ai:
|
||||
doubao: # 字节豆包
|
||||
enable: true
|
||||
|
||||
Reference in New Issue
Block a user