27 lines
695 B
YAML
27 lines
695 B
YAML
server:
|
|
port: 8080
|
|
# 允许其它设备直连后端(如不通过 Vite 代理、直接访问本机 IP:8080 时)
|
|
address: 0.0.0.0
|
|
|
|
spring:
|
|
application:
|
|
name: datatool-backend
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 2GB
|
|
max-request-size: 2GB
|
|
|
|
# WebSocket / STOMP 基础配置占位,后续可扩展
|
|
datatool:
|
|
websocket:
|
|
endpoint: /ws
|
|
allowed-origins:
|
|
- "*"
|
|
# 文件上传存储与限制(大文件走 HTTP 上传/下载,避免 WebSocket 断连)
|
|
transfer:
|
|
upload-dir: ./data/uploads
|
|
max-file-size: 2147483648 # 2GB
|
|
room-expire-hours: 24
|
|
cleanup-interval-ms: 3600000 # 定时过期清理间隔(毫秒),默认 1 小时
|
|
|