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
This commit is contained in:
Tim Bendt
2025-11-29 21:27:57 -05:00
parent 003b467a21
commit 3d9cb7507a

View File

@@ -29,11 +29,7 @@ http {
listen [::]:${PORT}; listen [::]:${PORT};
server_name localhost; server_name localhost;
$if(NIXPACKS_PHP_ROOT_DIR) ( root /app;
root ${NIXPACKS_PHP_ROOT_DIR};
) else (
root /app;
)
# Block access to hidden files and directories # Block access to hidden files and directories
location ~ /\. { location ~ /\. {
deny all; deny all;