# /etc/nginx/sites-available/vizurprotect
server {
    listen 80;
    server_name scan.yourdomain.com;
    root /var/www/vizurprotect/public;
    index index.php;

    client_max_body_size 70M;   # a little above VIZUR_MAX_UPLOAD_MB

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";
    add_header Referrer-Policy "strict-origin-when-cross-origin";

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

    location ~ \.php$ {
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
        fastcgi_read_timeout 120;
    }

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