feat: add entrypoint

This commit is contained in:
u00lipp
2025-10-23 08:10:45 +02:00
parent 28ed738e33
commit 8492f2cc33
6 changed files with 131 additions and 85 deletions
+5 -5
View File
@@ -5,10 +5,10 @@ server {
root /var/www/html/public;
index index.php;
# Healthcheck
# Health check (no PHP)
location = /healthz { return 200 "ok\n"; add_header Content-Type text/plain; }
# Static
# 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,16 +16,16 @@ server {
try_files $uri =404;
}
# Front controller
# Laravel front controller
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP via unix socket
# PHP via unix socket (shared with php-fpm)
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_pass unix:/run/php-fpm.sock;
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_read_timeout 60s;