Files

47 lines
1.0 KiB
Nginx Configuration File

server {
listen 80;
server_name _;
root /var/www/html/public;
index index.php;
client_max_body_size 64m;
location = /health {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
location ^~ /livewire {
try_files $uri $uri/ /index.php?$query_string;
}
location ^~ /flux {
try_files $uri $uri/ /index.php?$query_string;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~* \.(css|js|mjs|png|jpg|jpeg|gif|webp|svg|ico|woff|woff2|ttf|eot)$ {
expires 30d;
add_header Cache-Control "public, immutable";
try_files $uri =404;
access_log off;
}
location ~ \.php$ {
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/public$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
fastcgi_read_timeout 60;
}
location ~ /\.(?!well-known).* {
deny all;
}
}