From e9b3d8c12d5957ed8f231c490fcdf2a8df76c541 Mon Sep 17 00:00:00 2001 From: Cesar Jhoanny Mendivil Rubio Date: Wed, 1 Oct 2025 15:55:42 -0700 Subject: [PATCH] fix(easypanel): expand env vars in container config generator --- tools/easypanel-config-generator.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tools/easypanel-config-generator.sh b/tools/easypanel-config-generator.sh index fe9694e68..1e6d6de99 100644 --- a/tools/easypanel-config-generator.sh +++ b/tools/easypanel-config-generator.sh @@ -12,6 +12,27 @@ general: api_key: "${LIBRETIME_API_KEY:-}" secret_key: "${LIBRETIME_SECRET_KEY:-}" +database: + host: ${POSTGRES_HOST:-postgres} + port: ${POSTGRES_PORT:-5432} + name: ${POSTGRES_DB:-libretime} + user: ${POSTGRES_USER:-libretime} + password: "${POSTGRES_PASSWORD}" +#!/bin/sh +# Generador de config para EasyPanel +# Lee variables de entorno y escribe /config/config.yml + +set -eu + +CONFIG_PATH=/config/config.yml + +# Usar heredoc sin comillas para permitir expansión de variables +cat > "$CONFIG_PATH" <