From 3b85d301550b9b73f5005f85481ff0d942d9987e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8F=94=EF=B8=8F=20Peak?= <122374094+peaklabs-dev@users.noreply.github.com> Date: Fri, 24 Jan 2025 13:40:20 +0100 Subject: [PATCH] Update nixpacks.toml (#38) --- laravel/nixpacks.toml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/laravel/nixpacks.toml b/laravel/nixpacks.toml index 58e60ca..a0d8623 100644 --- a/laravel/nixpacks.toml +++ b/laravel/nixpacks.toml @@ -143,16 +143,9 @@ http { charset utf-8; - - $if(NIXPACKS_PHP_FALLBACK_PATH) ( - location / { - try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH}?$query_string; - } - ) else ( - location / { - try_files $uri $uri/ /index.php?$query_string; - } - ) + location / { + try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH:-/index.php}?$query_string; + } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; }