2026-07-17 06:18:56 +00:00
|
|
|
# ─── Heimdall — Environment Variables ──────────────────────────────
|
2026-10-26 05:59:55 +01:00
|
|
|
# Development examples only. Copy to docker/.env for a local deployment.
|
|
|
|
|
# Never commit real values; docker/.env and docker/secrets/ are ignored by Git.
|
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-08-20 18:13:59 +02:00
|
|
|
#
|
2026-10-26 05:59:55 +01:00
|
|
|
# Production core is PostgreSQL + Central. Use docker/secrets/db_password for
|
|
|
|
|
# the database and set JWT keys only in the host environment or ignored env file.
|
|
|
|
|
# Install Agents from the digest-pinned Compose supplied by Central's UI.
|
2026-07-17 06:18:56 +00:00
|
|
|
|
2026-10-20 02:27:03 +02:00
|
|
|
# Development example only: replace all credentials before exposure.
|
2026-07-17 06:18:56 +00:00
|
|
|
# Database
|
2026-10-20 02:27:03 +02:00
|
|
|
POSTGRES_PASSWORD=heimdall
|
2026-07-17 06:18:56 +00:00
|
|
|
DATABASE_URL=Host=postgresql;Port=5432;Database=heimdall;Username=heimdall;Password=heimdall
|
2026-10-26 08:34:15 +01:00
|
|
|
# Production uses eltruncho/heimdall:latest from Docker Hub.
|
2026-07-17 06:18:56 +00:00
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
2026-11-06 11:14:49 +01:00
|
|
|
# Optional manual license-plate crop OCR (disabled by default).
|
|
|
|
|
PLATE_OCR_ENABLED=false
|
|
|
|
|
|
2026-07-17 06:18:56 +00:00
|
|
|
# ASP.NET
|
2026-10-26 18:46:46 +01:00
|
|
|
ASPNETCORE_ENVIRONMENT=Development
|
2026-07-17 06:18:56 +00:00
|
|
|
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-10-21 16:03:16 +02:00
|
|
|
# RustFS (S3-compatible object storage)
|
|
|
|
|
RUSTFS_API_PORT=9000
|
|
|
|
|
RUSTFS_CONSOLE_PORT=9001
|
|
|
|
|
RUSTFS_ACCESS_KEY=heimdall
|
|
|
|
|
RUSTFS_SECRET_KEY=ChangeMeAtLeast32BytesLongKeyInProd!
|
|
|
|
|
RUSTFS_ENDPOINT=http://rustfs:9000
|
|
|
|
|
RUSTFS_BUCKET=heimdall
|
2026-07-17 06:18:56 +00:00
|
|
|
|
2026-07-28 14:52:52 +00:00
|
|
|
# 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).
|
2026-10-26 05:59:55 +01:00
|
|
|
SENTRY_DSN=
|
|
|
|
|
SENTRY_TRACES_SAMPLE_RATE=0.05
|
|
|
|
|
SENTRY_RELEASE=heimdall@1.0.0
|
2026-07-18 20:31:37 +00:00
|
|
|
|
2026-10-26 05:59:55 +01:00
|
|
|
# Agent (for local development only; production Compose is supplied by Central)
|
2026-10-20 02:27:03 +02:00
|
|
|
HEIMDALL_CENTRAL_URL=http://localhost:5000
|
2026-11-04 20:55:14 +01:00
|
|
|
HEIMDALL_PUBLIC_IP_RESOLVER_URL=
|
2026-10-20 02:27:03 +02:00
|
|
|
HEIMDALL_SITE_TOKEN=replace-with-actual-token
|
|
|
|
|
HEIMDALL_AGENT_NAME=agent-01
|
|
|
|
|
HEIMDALL_HEARTBEAT_INTERVAL=30
|
|
|
|
|
HEIMDALL_REGISTRATION_RETRIES=5
|
2026-07-27 04:56:16 +00:00
|
|
|
|
2026-08-20 18:13:59 +02:00
|
|
|
# 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
|
2026-10-26 05:59:55 +01:00
|
|
|
REDIS_PASSWORD=replace-with-a-long-unique-password
|