# Nexus Production Environment Configuration
# Copy this file to .env and fill in all values before deploying.

# ── PostgreSQL ──────────────────────────────────────────
POSTGRES_DB=nexus
POSTGRES_USER=nexus
POSTGRES_PASSWORD=***

# ── Connection String (inferred from above when using compose) ──
# ConnectionStrings__Nexus=Host=localhost;Database=${POSTGRES_DB};Username=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}

# ── JWT ─────────────────────────────────────────────────
# Generate with: openssl rand -base64 48
JWT_KEY=***        # at least 32 bytes (base64-encoded)
JWT_ISSUER=nexus
JWT_AUDIENCE=nexus-web

# ── Owner Account ───────────────────────────────────────
OWNER_EMAIL=***
OWNER_PASSWORD=***             # at least 14 characters; leave empty for auto-generated
OWNER_DISPLAY_NAME=***         # leave empty for auto-generated from email

# ── OpenClaw Integration ────────────────────────────────
# Base URL of the OpenClaw gateway (host.docker.internal from inside container)
OPENCLAW_BASE_URL=http://host.docker.internal:18789
OPENCLAW_GATEWAY_TOKEN=***
OPENCLAW_GATEWAY_PASSWORD=***
