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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user