From 540126ff42ba8bbb7c87d7a8ad16fa1a706acf0c Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Fri, 11 Sep 2026 08:34:19 +0200 Subject: [PATCH] poznote: serve from src/public docroot --- 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; }