fix: nginx substitutions

This commit is contained in:
u00lipp committed 2025-10-30 11:05:56 +01:00
1 parent b7ff7602f6
commit dfc3f6807a
1 file changed
+2 -7
+2 -7
View File
@@ -1,13 +1,8 @@
#!/bin/sh #!/bin/sh
set -e set -e
# Ensure SERVER_NAME is set SERVER_NAME="${SERVER_NAME:-$(hostname -f 2>/dev/null || hostname)}"
if [ -z "$SERVER_NAME" ]; then export SERVER_NAME
echo "[entrypoint] SERVER_NAME is not set. Using default value: localhost"
SERVER_NAME="localhost"
else
echo "[entrypoint] Using SERVER_NAME=$SERVER_NAME"
fi
# Prepare BASIC_AUTH_DIRECTIVES # Prepare BASIC_AUTH_DIRECTIVES
if [ "$ENABLE_BASIC_AUTH" = "true" ]; then if [ "$ENABLE_BASIC_AUTH" = "true" ]; then