feat: add entrypoint
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user