Initial commit: DataTool backend, frontend and Docker
This commit is contained in:
26
backend/src/main/resources/application.yml
Normal file
26
backend/src/main/resources/application.yml
Normal 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 小时
|
||||
|
||||
Reference in New Issue
Block a user