Files
Nexus/docs/changelog/2026-06-06-install-wizard-redis-persist-fix.md
T
Nexus Deploy 850038a3ec fix(install): 安装向导 Redis 密码不被 nx update/Compose 覆盖
Compose 不再注入 NEXUS_REDIS_URL;nx update 保留卷内带密码 URL;步骤 4 可从 install state 修复无密码 URL。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 11:34:26 +08:00

908 B
Raw Blame History

2026-06-06 — 安装向导 Redis 持久化与 nx update 防覆盖

摘要

修复 1Panel Docker 场景下安装向导写入带密码 Redis URL 后,nx update 与 Compose 环境变量覆盖导致步骤 4 检测失败的问题。

动机

  • nexus-1panel.sh 同步 NEXUS_REDIS_URL=redis://容器:6379/0(无密码)覆盖 docker/.env.prod
  • Compose 注入 NEXUS_REDIS_URL 优先级高于 /app/.env,步骤 4 无法从无密码 URL 自愈

涉及文件

  • docker/docker-compose.prod.yml — 移除 NEXUS_REDIS_URL 环境变量注入
  • deploy/nexus-1panel.shresolve_nexus_redis_url 优先保留卷/已有带密码 URL
  • server/api/install.pyinit-db 暂存 redis_passconnection-check_redis_repair_request 修复无密码 URL

验证

.venv/bin/pytest tests/test_security_unit.py -q -k redis
bash deploy/verify-1panel-install-wizard.sh