From 0a48435ef95dc0b3e3b8344b760a297933d55262 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sat, 12 Sep 2026 12:01:26 +0200 Subject: [PATCH] poznote: serve from src/public docroot (#17187) --- ct/poznote.sh | 4 +++- install/poznote-install.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ct/poznote.sh b/ct/poznote.sh index 88ab00237..535cd67f8 100644 --- a/ct/poznote.sh +++ b/ct/poznote.sh @@ -68,7 +68,7 @@ map \$uri \$poznote_coop { server { listen 8040; - root /var/www/html; + root /var/www/html/public; index index.php index.html; gzip on; @@ -144,10 +144,12 @@ server { } location ~ ^/data/users/[0-9]+/backgrounds/ { + root /var/www/html; try_files \$uri =404; } location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ { + root /var/www/html; try_files \$uri =404; } diff --git a/install/poznote-install.sh b/install/poznote-install.sh index 55021480d..72513c730 100644 --- a/install/poznote-install.sh +++ b/install/poznote-install.sh @@ -46,7 +46,7 @@ map \$uri \$poznote_coop { server { listen 8040; - root /var/www/html; + root /var/www/html/public; index index.php index.html; gzip on; @@ -122,10 +122,12 @@ server { } location ~ ^/data/users/[0-9]+/backgrounds/ { + root /var/www/html; try_files \$uri =404; } location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ { + root /var/www/html; try_files \$uri =404; }