安全加固:console_log.meshtastic 默认关闭(不打印解密明文),session_secure 默认 true,config.yaml 回写权限改 0600,公开接口错误信息脱敏(/api/health、/api/channels、列表接口,text-messages 移除 mqtt_remote_host),bot PSK 不回显(psk_set+更新保持原值),前端 help 页 DOMPurify 客户端消毒,后端 v1.6.0

This commit is contained in:
2026-08-20 17:19:40 +08:00
parent ba9be5b68b
commit b0202062af
15 changed files with 84 additions and 35 deletions
+5 -3
View File
@@ -104,14 +104,16 @@ database:
admin:
username: admin
password: ${ADMIN_PASSWORD}
session_secret: ""
session_secure: false
session_secret: ""
# 前端经 HTTPS(nginx 反代)访问时保持 true;纯 HTTP 部署需改回 false
session_secure: true
console_log:
web: true
mqtt: true
llm: true
sql: true
meshtastic: true
# 默认不打印解码后的 Meshtastic 数据包(含私聊明文),调试时改回 true
meshtastic: false
EOF
chown "${SERVICE_USER}:${SERVICE_GROUP}" "${CONFIG_DIR}/config.yaml"
chmod 0640 "${CONFIG_DIR}/config.yaml"