# ============================================================================= # s-file 客户侧静态默认配置(两台机器共用同一份,现场一般不用改) # # 随角色/环境变化的取值一律由 docker-compose 的环境变量注入,本文件不放: # 数据库/Redis/MQ 地址与口令、JWT 密钥、用户初始密码、传输方向与摆渡目录、 # MeshSafe 开关与凭证、MQ 交换机命名 —— 全部在 .env 里填 # 这样交付物里不存在任何写死的口令或密钥 # ============================================================================= server: port: 8080 spring: application: name: s-file datasource: driver-class-name: org.postgresql.Driver type: com.alibaba.druid.pool.DruidDataSource druid: initial-size: 5 min-idle: 5 max-active: 50 validation-query: SELECT 1 test-while-idle: true # 摆渡解包/送检会在多任务里并发取连接,压太低会出现等待 max-wait: 10000 redis: timeout: 5000 lettuce: pool: max-active: 16 max-idle: 8 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 # 平台编码,需与 sql/02-init-data.sql 里 uc_platform.platform_code 一致 system: code: 1 security: jwt: enable: true # secret 由环境变量 SECURITY_JWT_SECRET 注入,勿在此填写 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: "" anonymous: "" # 新用户初始密码由环境变量 USER_DEFAULT_PASSWORD 注入 user: default: password: ${USER_DEFAULT_PASSWORD:} file: upload-dir: /data/upload storage: type: local transfer: # location / send-dir / receive-dir / monitor.cron 均由环境变量注入 # 解包时是否再做一次内容风险识别(依赖下面的 dify,未部署 dify 时保持 false) unpack-risk-check: false # 内容风险识别(Dify)。未部署 Dify 时留空并保持 file.transfer.unpack-risk-check=false dify: risk: rule: api-key: "" scan: api-key: "" # MeshSafe 全段由环境变量注入(MESHSAFE_*),未部署时 MESHSAFE_ENABLED=false 即可, # 前端会自动隐藏「安全检测」列,跨网摆渡不受影响 meshsafe: review-sync-to-meshsafe: true # 接口文档在生产关闭 swagger: enable: false logging: level: com.senmesh: info