server { listen 80; server_name localhost; root /usr/share/nginx/html; index haus-schleusingen.html; # Gzip aktivieren gzip on; gzip_types text/css application/javascript image/svg+xml application/json text/xml; gzip_min_length 256; gzip_vary on; location / { try_files $uri $uri/ /haus-schleusingen.html; } # Lange Cache-Dauer für Bilder und statische Assets location ~* \.(jpg|jpeg|png|webp|gif|ico|svg|css|js|woff2?)$ { expires 30d; add_header Cache-Control "public, immutable"; access_log off; } }