Initial commit: DataTool backend, frontend and Docker

This commit is contained in:
liu
2026-01-31 00:51:14 +08:00
commit 59bb8e16f5
69 changed files with 9449 additions and 0 deletions

View File

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