From 0f61dd1bc6b9629f5cfc5afc4663b0c094f0e4b2 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Tue, 22 Oct 2024 13:18:40 +0100 Subject: [PATCH] Move index.php to /public dir, so that I can isolate the file access --- nixpacks.toml | 3 ++- index.php => public/index.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename index.php => public/index.php (71%) diff --git a/nixpacks.toml b/nixpacks.toml index fc44cc8..2e9844c 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,2 +1,3 @@ [variables] -NIXPACKS_PHP_FALLBACK_PATH = "/index.php" \ No newline at end of file +NIXPACKS_PHP_FALLBACK_PATH = "/index.php" +NIXPACKS_PHP_ROOT_DIR = "/app/public" \ No newline at end of file diff --git a/index.php b/public/index.php similarity index 71% rename from index.php rename to public/index.php index 035f6f9..fb5e076 100644 --- a/index.php +++ b/public/index.php @@ -1,9 +1,9 @@