2026-07-17 06:18:56 +00:00
|
|
|
# ─── Heimdall — Environment Variables ──────────────────────────────
|
|
|
|
|
# Copy this file to .env and adjust for your deployment
|
2026-07-20 10:30:01 +00:00
|
|
|
#
|
2026-07-20 17:22:56 +00:00
|
|
|
# The heimdall service serves the Blazor UI, REST API, SignalR hubs,
|
|
|
|
|
# and Hangfire background jobs in a single process on port 5000.
|
2026-07-17 06:18:56 +00:00
|
|
|
|
|
|
|
|
# Database
|
|
|
|
|
DATABASE_URL=Host=postgresql;Port=5432;Database=heimdall;Username=heimdall;Password=heimdall
|
|
|
|
|
|
|
|
|
|
# JWT (change in production!)
|
2026-07-25 18:02:43 +00:00
|
|
|
# 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.
|
2026-07-17 06:18:56 +00:00
|
|
|
JWT__KEY=ChangeMeToAtLeast32BytesLongKeyInProd!
|
2026-07-25 18:02:43 +00:00
|
|
|
JWT__REFRESHKEY=ChangeMeToAtLeast32BytesRefreshKeyInProd!
|
2026-07-17 06:18:56 +00:00
|
|
|
JWT__ISSUER=heimdall
|
|
|
|
|
JWT__AUDIENCE=heimdall-api
|
|
|
|
|
|
|
|
|
|
# ASP.NET
|
|
|
|
|
ASPNETCORE_ENVIRONMENT=Production
|
|
|
|
|
ASPNETCORE_URLS=http://+:8080
|
|
|
|
|
|
2026-07-20 10:30:01 +00:00
|
|
|
# CORS (default: allow all origins — restrict in production)
|
|
|
|
|
Cors__AllowedOrigins=*
|
2026-07-17 06:18:56 +00:00
|
|
|
|
2026-07-18 11:40:03 +00:00
|
|
|
# Alarik (S3-compatible object storage)
|
|
|
|
|
ALARIK_API_PORT=9000
|
|
|
|
|
ALARIK_CONSOLE_PORT=9001
|
|
|
|
|
ALARIK_ADMIN_USERNAME=heimdall
|
|
|
|
|
ALARIK_ADMIN_PASSWORD=heimdall123
|
|
|
|
|
ALARIK_JWT=ChangeMeAtLeast32BytesLongKeyInProd!
|
2026-07-17 06:18:56 +00:00
|
|
|
|
2026-07-18 20:31:37 +00:00
|
|
|
# Sentry / GlitchTip (error tracking)
|
|
|
|
|
# SENTRY_DSN=https://key@glitchtip.tordais.cc/6
|
|
|
|
|
|
2026-07-17 06:18:56 +00:00
|
|
|
# Agent (set per agent instance)
|
2026-07-20 17:22:56 +00:00
|
|
|
Agent__CentralUrl=http://heimdall:8080
|
2026-07-18 14:11:47 +00:00
|
|
|
Agent__SiteToken=replace-with-actual-token
|
|
|
|
|
Agent__AgentName=agent-01
|
|
|
|
|
Agent__HeartbeatIntervalSeconds=30
|
|
|
|
|
Agent__RegistrationMaxRetries=5
|
2026-07-27 04:56:16 +00:00
|
|
|
|
2026-07-27 05:33:53 +00:00
|
|
|
# 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
|
|
|
|
|
|
2026-07-27 04:56:16 +00:00
|
|
|
# ntfy push notifications
|
|
|
|
|
NTFY__BASE_URL=http://ntfy:80
|
|
|
|
|
NTFY__TOKEN=
|