Files
senmesh-zc/docker-test/application.yml

109 lines
2.1 KiB
YAML

server:
port: 8080
spring:
application:
name: s-file
datasource:
url: jdbc:postgresql://sfile-pg:5432/s_file
driver-class-name: org.postgresql.Driver
username: postgres
password: sfile123
druid:
initial-size: 2
min-idle: 2
max-active: 10
validation-query: SELECT 1
redis:
host: sfile-redis
port: 6379
timeout: 5000
lettuce:
pool:
max-active: 8
max-idle: 4
rabbitmq:
host: sfile-mq
port: 5672
username: guest
password: guest
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
main:
allow-bean-definition-overriding: true
mybatis-plus:
mapper-locations: classpath*:com/senmesh/**/mapper/*.xml
# 平台编码(init-data 中 uc_platform.platform_code=1)
system:
code: 1
# 发号器雪花 workerId(键格式: code.snowflake.workid.<容器IP>)
"[code.snowflake.workid.172.20.0.10]": 1
security:
jwt:
enable: true
secret: sfile-functional-test-secret-key-please-change-0123456789abcdef
expiration: 86400000
header: Authorization
ignoring: /error,/favicon.ico
login-page: /login
superior-only: false
use-local: true
allow-if-all-abstain-decisions: true
oauth2:
enable: false
not-logs: ""
# 新用户初始密码
user:
default:
password: Qaz123567!@#
file:
upload-dir: /data/upload
storage:
type: local
transfer:
# 内网侧
location: "1"
send-dir: /data/transfer/send
receive-dir: /data/transfer/receive
unpack-risk-check: false
dify:
risk:
rule:
api-key: test-rule-key
scan:
api-key: test-scan-key
# MeshSafe 文件安全检测(上传/接收解包后自动送检,不通过禁止分享传输)
meshsafe:
enabled: false
base-url: https://meshsafe.internal
client-id: s-file
secret: change-me
channel: default
timeout-seconds: 120
fail-open: true
poll-timeout-minutes: 60
review-sync-to-meshsafe: true
rabbitmq:
custom:
topic-exchange-name: s-file-test-topic
delayed-exchange-name: s-file-test-delayed
broadcast-id: s-file-test-broadcast
swagger:
enable: false
logging:
level:
com.senmesh: info