Files
Heimdall/.env.example
T
Arnaud Dartois 630e7987fe refactor(docker): merge worker and web into single heimdall image
Combine Heimdall.Web and Heimdall.Workers into one process/image.
Hangfire background jobs now run inside the web process.

- Move job classes to Infrastructure/Jobs/ (no Worker SDK dependency)
- Add Hangfire server + recurring jobs to Web/Program.cs
- Add missing AddInfrastructure/AddApplication DI registrations to Web
- Rename image: heimdall (was heimdall-web / heimdall-workers)
- Remove src/Heimdall.Workers project entirely
- Remove tests/Heimdall.Workers.Tests (placeholder)
- Simplify Dockerfile: single build target, no workers publish
- Update docker-compose files: one service heimdall, no workers
- Update Makefile, .env.example
2026-07-20 17:22:56 +00:00

38 lines
1.2 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=ChangeMeToAtLeast32BytesLongKeyInProd!
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)
# SENTRY_DSN=https://key@glitchtip.tordais.cc/6
# 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