fix:设备状态

This commit is contained in:
waner
2026-03-27 13:42:22 +08:00
parent 11ed0b5edf
commit 584af49b25
10 changed files with 173 additions and 266 deletions
-33
View File
@@ -167,39 +167,6 @@ tms:
memory-total-default: ${TMS_DEVICE_PROFILE_MEMORY_TOTAL_DEFAULT:16GB}
# 磁盘总量默认展示值;命令读取失败或为空时回退。
disk-total-default: ${TMS_DEVICE_PROFILE_DISK_TOTAL_DEFAULT:256G}
web:
cors:
# 是否启用浏览器跨域访问控制。
enabled: ${TMS_WEB_CORS_ENABLED:true}
# 允许的前端来源;默认放开本机联调端口,部署时请改成明确前端域名/IP。
allowed-origin-patterns:
- ${TMS_WEB_CORS_ALLOWED_ORIGIN_PATTERN_1:http://localhost:*}
- ${TMS_WEB_CORS_ALLOWED_ORIGIN_PATTERN_2:http://127.0.0.1:*}
# 允许浏览器预检和业务请求使用的方法。
allowed-methods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
# 允许前端发送的请求头;覆盖内部 token、OpenAPI 签名头和 traceId。
allowed-headers:
- Authorization
- Content-Type
- X-Requested-With
- X-Internal-Token
- X-App-Id
- X-Timestamp
- X-Nonce
- X-Signature
- X-Trace-Id
# 允许前端读取的响应头。
exposed-headers:
- X-Trace-Id
# 是否允许跨域携带 cookie / 凭据。
allow-credentials: ${TMS_WEB_CORS_ALLOW_CREDENTIALS:true}
# 浏览器预检缓存时间(秒)。
max-age-seconds: ${TMS_WEB_CORS_MAX_AGE_SECONDS:3600}
upgrade:
# 升级包解压和脚本执行暂存目录。
staging-root-dir: ${TMS_UPGRADE_STAGING_ROOT_DIR:/home/tmp/tms-upgrade-staging}