- Add JWT__RefreshKey to .env.example with documentation - Add JWT__RefreshKey to docker-compose.yml and docker-compose.prod.yml - Fix JwtService to check both IConfiguration and env vars (JWT__REFRESHKEY) for access token key and refresh token key, matching Program.cs pattern - Fixes 'Jwt:RefreshKey is not configured' 500 error on register/login
41 lines
1.4 KiB
Bash
41 lines
1.4 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)
|
|
# 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
|