poznote: serve from src/public docroot

This commit is contained in:
MickLesk
2026-09-11 08:34:19 +02:00
parent db418a7a3b
commit 540126ff42
2 changed files with 6 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}