# ─── Heimdall — Environment Variables ────────────────────────────── # Copy this file to .env and adjust for your deployment # # The heimdall service serves the Blazor UI, REST API, SignalR hubs, # and Hangfire background jobs in a single process on port 5000. # # PRODUCTION: Use Docker secrets (docker/secrets/) for sensitive values. # See docker-compose.prod.yml header for instructions. # Development example only: replace all credentials before exposure. # Database POSTGRES_PASSWORD=heimdall RABBITMQ_PASSWORD=heimdall-development-only DATABASE_URL=Host=postgresql;Port=5432;Database=heimdall;Username=heimdall;Password=heimdall # JWT (change in production!) # JWT__Key is used for access tokens, JWT__RefreshKey for refresh tokens. # Both must be at least 32 bytes (256 bits) — use different values for security. JWT__KEY=ChangeMeToAtLeast32BytesLongKeyInProd! JWT__REFRESHKEY=ChangeMeToAtLeast32BytesRefreshKeyInProd! JWT__ISSUER=heimdall JWT__AUDIENCE=heimdall-api # ASP.NET ASPNETCORE_ENVIRONMENT=Production ASPNETCORE_URLS=http://+:8080 # CORS (default: allow all origins — restrict in production) Cors__AllowedOrigins=* # Alarik (S3-compatible object storage) ALARIK_API_PORT=9000 ALARIK_CONSOLE_PORT=9001 ALARIK_ADMIN_USERNAME=heimdall ALARIK_ADMIN_PASSWORD=heimdall123 ALARIK_JWT=ChangeMeAtLeast32BytesLongKeyInProd! # Sentry / GlitchTip (error tracking, performance, structured logs) # Primary: Sentry__Dsn (ASP.NET Core config convention) # Fallback: SENTRY_DSN (legacy, for backward compatibility) # When unset/empty, the Sentry SDK is not initialized (graceful no-op). Sentry__Dsn=https://db94b9...dc73@glitchtip.tordais.cc/6 Sentry__TracesSampleRate=0.05 Sentry__Release=heimdall@1.0.0 # Agent (set per agent instance) HEIMDALL_CENTRAL_URL=http://localhost:5000 HEIMDALL_SITE_TOKEN=replace-with-actual-token HEIMDALL_AGENT_NAME=agent-01 HEIMDALL_HEARTBEAT_INTERVAL=30 HEIMDALL_REGISTRATION_RETRIES=5 # Email (SMTP) — notifications EMAIL__SMTP_HOST=smtp.example.com EMAIL__SMTP_PORT=587 EMAIL__USERNAME= EMAIL__PASSWORD= EMAIL__FROM_ADDRESS=noreply@heimdall.local EMAIL__FROM_NAME=Heimdall EMAIL__USE_SSL=true # ntfy push notifications NTFY__BASE_URL=http://ntfy:80 NTFY__TOKEN= # Coturn (TURN relay for WebRTC) COTURN_SECRET=ChangeMeAtLeast32BytesLongCoturnSecret! COTURN_REALM=heimdall.local # Ollama (local LLM for daily summaries) OLLAMA_PORT=11434 # Redis (SignalR backplane, optional — scaling) REDIS_PORT=6379 REDIS_PASSWORD=