From a6c280de880819b94ac0cc3b330540bc8b44ac75 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 22 Jan 2025 14:29:22 +0100 Subject: [PATCH] Update nixpacks.toml --- laravel/nixpacks.toml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/laravel/nixpacks.toml b/laravel/nixpacks.toml index 7dd7fb8..44496bc 100644 --- a/laravel/nixpacks.toml +++ b/laravel/nixpacks.toml @@ -144,16 +144,12 @@ http { charset utf-8; $if(IS_LARAVEL) ( - location / { - try_files $uri $uri/ /index.php?$query_string; - } - ) else () - - $if(NIXPACKS_PHP_FALLBACK_PATH) ( - location / { - try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH}?$query_string; - } - ) else () + $if(NIXPACKS_PHP_FALLBACK_PATH) ( + location / { + try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH}?$query_string; + } + ) + ) location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; }