server {
    listen 80;
    server_name _;
    root /usr/share/nginx/html;
    index index.html;

    # clean URLs: /portfolio/museo/ → its index.html, else 404
    location / {
        try_files $uri $uri/ =404;
    }

    error_page 404 /404.html;

    # long cache for fingerprinted/static assets
    location ~* \.(css|js|woff2|webp|svg|png|jpe?g|ico)$ {
        expires 7d;
        add_header Cache-Control "public, max-age=604800";
    }
}
