server {
    listen 80;
    server_name example.com;
    root /var/www/animora/public;
    index index.php;
    client_max_body_size 2048m;

    location / { try_files $uri $uri/ /index.php?$query_string; }
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;
    }
    location ~* /(\.env|/app/|/storage/|/database/|/scripts/) { deny all; }
    include /etc/nginx/snippets/animora-media.conf;
}
