From f688ed1cad8ee08057a380cde1545da60540d69d 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, 31 Jan 2025 14:04:51 +0100 Subject: [PATCH] Revert "Update nixpacks.toml (#38)" (#40) This reverts commit 3b85d301550b9b73f5005f85481ff0d942d9987e. --- laravel/nixpacks.toml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/laravel/nixpacks.toml b/laravel/nixpacks.toml index a0d8623..58e60ca 100644 --- a/laravel/nixpacks.toml +++ b/laravel/nixpacks.toml @@ -143,9 +143,16 @@ http { charset utf-8; - location / { - try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH:-/index.php}?$query_string; - } + + $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 = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; }