fix: build and permissions

This commit is contained in:
u00lipp
2025-10-23 08:25:29 +02:00
parent 8492f2cc33
commit ea351d2e6d
6 changed files with 57 additions and 74 deletions
-4
View File
@@ -5,10 +5,8 @@ server {
root /var/www/html/public;
index index.php;
# Health check (no PHP)
location = /healthz { return 200 "ok\n"; add_header Content-Type text/plain; }
# Static assets
location ~* \.(?:css|js|mjs|map|jpg|jpeg|png|gif|ico|svg|webp|avif|ttf|otf|woff|woff2)$ {
access_log off; log_not_found off;
expires 7d;
@@ -16,12 +14,10 @@ server {
try_files $uri =404;
}
# Laravel front controller
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP via unix socket (shared with php-fpm)
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;