- 🔴 Fix startup crash when DB is temporarily unavailable: add 5x retry with exponential backoff to Database.MigrateAsync() in API and Workers - 🔴 Fix EF Core 'required navigation with query filter' warnings: add matching soft-delete query filters to AgentSetting, CameraCredentials, CameraDetectionProfile, UserSite - 🔴 Add Sentry error tracking to Workers (Hangfire background jobs) - 🟡 Make Sentry/GlitchTip DSN configurable via SENTRY_DSN env var (applies to API, Web, Agent, Workers) - 🟡 Suppress EF Core RedundantIndexRemoved informational messages Closes GlitchTip #538
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# ─── Heimdall — Environment Variables ──────────────────────────────
|
|
# Copy this file to .env and adjust for your deployment
|
|
|
|
# Database
|
|
DATABASE_URL=Host=postgresql;Port=5432;Database=heimdall;Username=heimdall;Password=heimdall
|
|
|
|
# JWT (change in production!)
|
|
JWT__KEY=ChangeMeToAtLeast32BytesLongKeyInProd!
|
|
JWT__ISSUER=heimdall
|
|
JWT__AUDIENCE=heimdall-api
|
|
|
|
# ASP.NET
|
|
ASPNETCORE_ENVIRONMENT=Production
|
|
ASPNETCORE_URLS=http://+:8080
|
|
|
|
# CORS
|
|
Cors__AllowedOrigins=https://localhost:5001,http://localhost:5000
|
|
|
|
# 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)
|
|
# SENTRY_DSN=https://key@glitchtip.tordais.cc/6
|
|
|
|
# Agent (set per agent instance)
|
|
Agent__CentralUrl=http://heimdall-central:8080
|
|
Agent__SiteToken=replace-with-actual-token
|
|
Agent__AgentName=agent-01
|
|
Agent__HeartbeatIntervalSeconds=30
|
|
Agent__RegistrationMaxRetries=5
|