6276ea08b7
Compose stack is MySQL+Nexus only; wizard Redis check is non-blocking and defaults to host.docker.internal for self-managed Redis. Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Production Compose env — copy to docker/.env.prod (never commit)
|
||
# Fresh install: bash deploy/install-nexus-fresh.sh (auto-generates unique secrets per host)
|
||
# Migration: bash deploy/nexus-1panel.sh install --from-env /path/to/old/.env
|
||
|
||
MYSQL_ROOT_PASSWORD=change_me_root_strong
|
||
MYSQL_PASSWORD=change_me_nexus_strong
|
||
|
||
# Auto-generated on fresh install (unique per server). Do NOT copy between hosts.
|
||
NEXUS_SECRET_KEY=
|
||
NEXUS_API_KEY=
|
||
NEXUS_ENCRYPTION_KEY=
|
||
|
||
# 1 = entrypoint must not write /app/.env until install wizard step 3
|
||
NEXUS_INSTALL_WIZARD_PENDING=0
|
||
|
||
# Public URL
|
||
NEXUS_CORS_ORIGINS=https://api.synaglobal.vip
|
||
NEXUS_API_BASE_URL=https://api.synaglobal.vip
|
||
|
||
# 2 vCPU / 8 GiB host (matches docker/mysql-prod-2c8g.cnf + compose limits)
|
||
NEXUS_DB_POOL_SIZE=30
|
||
NEXUS_DB_MAX_OVERFLOW=20
|
||
|
||
# Redis 不在 Docker 栈内 — 请在宿主机或 1Panel 应用商店自行安装
|
||
# Nexus 容器通过 host.docker.internal 访问宿主机 Redis(见 docker-compose.prod.yml)
|
||
NEXUS_REDIS_URL=redis://host.docker.internal:6379/0
|
||
|
||
# Optional
|
||
# NEXUS_PUBLISH_PORT=8600
|