From 9ba82133da2ae472952358f84d8ee1758c0f108a Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Fri, 30 Jan 2026 17:28:08 +0100 Subject: [PATCH] feat(installations): support docker secrets file for encryption key (#4946) --- scripts/run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/run.sh b/scripts/run.sh index 78659a04a..4d90499d5 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -19,6 +19,11 @@ export AUTH_SECRET=$(openssl rand -base64 32) # Cron job API key is generated every time the container starts as it is required for communication between nextjs-api and tasks-api export CRON_JOB_API_KEY=$(openssl rand -base64 32) +# Support secret file for encryption key (is not empty and file exists) +if [ -n "$SECRET_ENCRYPTION_KEY_FILE" ] && [ -f "$SECRET_ENCRYPTION_KEY_FILE" ]; then + export SECRET_ENCRYPTION_KEY=$(cat $SECRET_ENCRYPTION_KEY_FILE) +fi + # Start nginx proxy # 1. Replace the HOSTNAME in the nginx template file # 2. Create the nginx configuration file from the template