# Example server block. Supply your certificate paths and PHP-FPM socket.
server {
    listen 443 ssl http2;
    server_name example.com;
    root /srv/numis-acquisition/public;
    index index.php;

    client_max_body_size 90m;
    autoindex off;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS on;
        fastcgi_pass unix:/run/php/php-fpm.sock;
    }

    location ~ /\.(?!well-known) {
        deny all;
    }

    location ~* \.(?:env|sql|log|ini|lock|md)$ {
        deny all;
    }
}
