Files
Heimdall/.env.example
T
Arnaud Dartois afc1b2e032 fix: resolve demo admin seeding, Sentry DSN pass-through, and add startup diagnostics
- Replace IsDevelopment() guard with Seed:DemoOnStartup config flag
  (default: true, disable via SEED__DEMO_ON_STARTUP=false)
- Add Seed:AdminLogin (env SEED__ADMIN_LOGIN) to customize demo admin email
- Add Seed:AdminDisplayName (env SEED__ADMIN_DISPLAYNAME) to customize display name
- Add Sentry__Dsn env var to docker-compose files (matches .env convention)
- Increase Heimdall log level to Debug for startup diagnostics
- Add [DIAG] startup logs for Sentry DSN, Data Protection keys, environment
- Add Data Protection key directory diagnostic in DependencyInjection
2026-07-29 14:21:16 +00:00

60 lines
2.0 KiB
Bash

# ─── 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.
# Database
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://db94b9fc2f36425f9eb4b9f6f347dc73@glitchtip.tordais.cc/6
Sentry__TracesSampleRate=0.05
Sentry__Release=heimdall@1.0.0
# Agent (set per agent instance)
Agent__CentralUrl=http://heimdall:8080
Agent__SiteToken=replace-with-actual-token
Agent__AgentName=agent-01
Agent__HeartbeatIntervalSeconds=30
Agent__RegistrationMaxRetries=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=
SENTRY_DSN=${Sentry__Dsn}