From e4685289f7a1ddfe03f140debcb9537bdd2f579e Mon Sep 17 00:00:00 2001 From: mstfyldz Date: Mon, 4 May 2026 23:40:30 +0300 Subject: [PATCH] fix: change nginx root to standard /usr/share/nginx/html to resolve 404 --- nginx.conf | 2 +- nginx.template.conf | 2 +- nixpacks.toml | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index ead938c..cb17c0e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,7 +1,7 @@ server { listen 80; server_name _; - root /app; + root /usr/share/nginx/html; index index.html; # GZIP Compression diff --git a/nginx.template.conf b/nginx.template.conf index fb0653e..4bb7269 100644 --- a/nginx.template.conf +++ b/nginx.template.conf @@ -1,7 +1,7 @@ server { listen 80; server_name _; - root /app; + root /usr/share/nginx/html; index index.html index.php; # GZIP Compression diff --git a/nixpacks.toml b/nixpacks.toml index 44d640f..021c9ff 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,3 +1,2 @@ -[variables] - NIXPACKS_PHP_ROOT_DIR = "/app" - NIXPACKS_PHP_FALLBACK_PATH = "/index.html" +# Nixpacks configuration +# Letting Nixpacks decide the best way to build, but keeping it as a reference.