Files
Heimdall/.env.example
T
Arnaud Dartois 6fc8efc438
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 12m24s
Complete durable agent analysis job flow
2026-10-24 13:43:21 +02:00

78 lines
2.6 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.
#
# 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
DATABASE_URL=Host=postgresql;Port=5432;Database=heimdall;Username=heimdall;Password=heimdall
SERVER_IMAGE_REFERENCE=eltruncho/heimdall:latest
UPDATES_RELEASE_API_URL=https://sources.tordais.cc/api/v1/repos/arnaud.dartois/Heimdall/releases/latest
# 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=*
# 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
# 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=