From 3d9cb7507aa3c704dbf41230a90c048a2c44fbff Mon Sep 17 00:00:00 2001 From: Tim Bendt Date: Sat, 29 Nov 2025 21:27:57 -0500 Subject: [PATCH] Simplify nginx template by removing conditional root block - Removed if(NIXPACKS_PHP_ROOT_DIR) conditional block - Set root directly to /app since NIXPACKS_PHP_ROOT_DIR variable not set - This fixes nginx config issues and simplifies template - Ensures consistent behavior across all deployments --- nginx.template.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nginx.template.conf b/nginx.template.conf index 9301095..97f4357 100644 --- a/nginx.template.conf +++ b/nginx.template.conf @@ -29,11 +29,7 @@ http { listen [::]:${PORT}; server_name localhost; - $if(NIXPACKS_PHP_ROOT_DIR) ( - root ${NIXPACKS_PHP_ROOT_DIR}; - ) else ( - root /app; - ) + root /app; # Block access to hidden files and directories location ~ /\. { deny all;