From dfc3f6807a6d26aa021aee13dd9bc0de23f04884 Mon Sep 17 00:00:00 2001 From: u00lipp Date: Thu, 30 Oct 2025 11:05:56 +0100 Subject: [PATCH] fix: nginx substitutions --- deploy/docker-entrypoint.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/deploy/docker-entrypoint.sh b/deploy/docker-entrypoint.sh index 2de8bc1..fed1cfd 100644 --- a/deploy/docker-entrypoint.sh +++ b/deploy/docker-entrypoint.sh @@ -1,13 +1,8 @@ #!/bin/sh set -e -# Ensure SERVER_NAME is set -if [ -z "$SERVER_NAME" ]; then - echo "[entrypoint] SERVER_NAME is not set. Using default value: localhost" - SERVER_NAME="localhost" -else - echo "[entrypoint] Using SERVER_NAME=$SERVER_NAME" -fi +SERVER_NAME="${SERVER_NAME:-$(hostname -f 2>/dev/null || hostname)}" +export SERVER_NAME # Prepare BASIC_AUTH_DIRECTIVES if [ "$ENABLE_BASIC_AUTH" = "true" ]; then