d25d876c2c
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled
Set-password links in every password-setup/reset email pointed at http://localhost:5173 in production because PLATFORM_URL was never mapped in docker-compose.prod.yml's backend environment block — the app silently used its dev default. Now defaults to the real domain from CORS_ORIGINS.
51 lines
3.1 KiB
Bash
51 lines
3.1 KiB
Bash
# =============================================================================
|
|
# Aegis Environment Variables
|
|
# =============================================================================
|
|
# Copy this file to .env and fill in the values BEFORE deploying.
|
|
#
|
|
# Generate secure random values with:
|
|
# openssl rand -hex 32 (for SECRET_KEY)
|
|
# openssl rand -base64 18 (for passwords)
|
|
# =============================================================================
|
|
|
|
# ── Database ─────────────────────────────────────────────────────────────────
|
|
DB_USER=postgres
|
|
DB_PASSWORD= # REQUIRED — set a strong password
|
|
DB_NAME=attackdb
|
|
|
|
# ── Security ─────────────────────────────────────────────────────────────────
|
|
# REQUIRED in production — the app will refuse to start without it.
|
|
# Generate with: openssl rand -hex 32
|
|
SECRET_KEY=
|
|
|
|
TOKEN_EXPIRE_MINUTES=60
|
|
|
|
# ── Initial Admin Account ────────────────────────────────────────────────────
|
|
# If ADMIN_PASSWORD is empty, a random password is auto-generated and
|
|
# printed to the backend container logs on first startup.
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=
|
|
|
|
# ── MinIO Object Storage ─────────────────────────────────────────────────────
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY= # REQUIRED — set a strong password
|
|
MINIO_BUCKET=evidence
|
|
MINIO_SECURE=false # Set to true if MinIO is behind TLS
|
|
|
|
# ── CORS ──────────────────────────────────────────────────────────────────────
|
|
# Comma-separated list of allowed frontend origins
|
|
CORS_ORIGINS=https://your-domain.com
|
|
|
|
# ── Frontend ─────────────────────────────────────────────────────────────────
|
|
FRONTEND_PORT=80
|
|
|
|
# ── Emails ────────────────────────────────────────────────────────────────────
|
|
# Base URL used to build links in outbound emails (set-password, etc).
|
|
# Must match your real public frontend URL — the app falls back to
|
|
# http://localhost:5173 (dev default) if this is not set.
|
|
PLATFORM_URL=https://your-domain.com
|
|
|
|
# ── Environment flag ─────────────────────────────────────────────────────────
|
|
# Set to "production" for production deployments (enforces SECRET_KEY, etc.)
|
|
AEGIS_ENV=production
|