server { listen 80; server_name _; root /usr/share/nginx/html; # Serve dashboard.html as the index location / { try_files /dashboard.html =404; } # Cache static assets location ~* \.(html|css|js)$ { expires 5m; add_header Cache-Control "public, no-transform"; } # Security headers add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; # Gzip gzip on; gzip_types text/html text/css application/javascript; }