# Mimir FOB — Environment Variables
# Copy this to .env and edit before running docker compose up.

# ── Web service ───────────────────────────────────────────────────────────────
MIMIR_USER=admin                    # Django superuser username (created on first start)
MIMIR_EMAIL=admin@localhost         # Django superuser email
MIMIR_PASSWORD=changeme             # ⚠️  Change this!  Used by the MCP facade to get a token.
DJANGO_DEBUG=False
WEB_PORT=8000                       # Host port for the web UI

# ── MCP facade ────────────────────────────────────────────────────────────────
MCP_PORT=8001                       # Host port for the MCP SSE endpoint
# MIMIR_TOKEN=                      # Optional: provide a pre-existing DRF token.
#                                   # If blank, the facade auto-fetches one at startup.

# ── Galdr AI Engine ───────────────────────────────────────────────────────────
# Galdr uses Anthropic Claude to assess PIP Changes. See docs/architecture/SAO.md § Galdr AI.
# Default model: claude-sonnet-4-5. Override with any Anthropic model slug.
ANTHROPIC_API_KEY=sk-ant-...          # required for Galdr to function
GALDR_MODEL=claude-sonnet-4-5         # default model; Sonnet 4.5 recommended

# ── Bug reports (GitHub Issues; UI widget + POST /api/feedback/report/) ─────
# GITHUB_TOKEN=ghp_...                  # PAT: Issues:write on repo below (FOB only; not the MCP container)
# GITHUB_BUG_REPO=phainestai/mimir     # Optional; this is the default
# MIMIR_GIT_REVISION=                  # Optional: git SHA or tag; /health/ "revision" + issue bodies (else VERSION file)
# BUG_REPORT_DRY_RUN=1                 # Optional: skip GitHub API (placeholder issue)

# ── Local email (auth verification, password reset) ─────────────────────────
# Default dev: AWS SES (USE_SES_IN_DEV=1). Requires AWS credentials (`aws login`).
# DEFAULT_FROM_EMAIL=noreply@featurefactory.io
# AWS_SES_REGION_NAME=us-east-1
# AWS_SES_CONFIGURATION_SET=mimir-transactional
# Opt out (print emails to runserver terminal only): USE_SES_IN_DEV=0

# ── AWS ECR (for CI/CD) ───────────────────────────────────────────────────────
# AWS_REGION=us-east-1
# AWS_ACCOUNT_ID=123456789012
# ECR_REGISTRY=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com
