Allow admin API key to be configured via ADMIN_API_KEY env var

Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/27db6d87-70db-4979-a23c-dd376f1c3b9a

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-29 23:10:36 +00:00
parent f2dd2333b6
commit ccb3f3fb7e
4 changed files with 79 additions and 15 deletions
+6
View File
@@ -11,6 +11,12 @@ PROJECT_NAME="DMARQ"
# NEVER use the default value in production!
SECRET_KEY="CHANGE_THIS_TO_A_RANDOM_SECRET_IN_PRODUCTION"
# Admin API Key for the X-API-Key header (optional)
# If set, this key is used instead of generating a random one at startup.
# Generate with: openssl rand -hex 32
# If not set, a random key is generated each restart (logged with last 8 chars).
# ADMIN_API_KEY="your_admin_api_key_here"
# Environment (development/production)
# Affects HSTS and other security settings
ENVIRONMENT="development"