# SPDX-License-Identifier: AGPL-3.0-or-later server { listen 8080; server_name _; root /usr/share/nginx/html; index index.html; include /etc/nginx/conf.d/security-headers.conf; location = /_health { access_log off; return 204; } location = /_healthz { access_log off; return 204; } location = /404.html { internal; } location ^~ /assets/ { try_files $uri =404; include /etc/nginx/conf.d/security-headers.conf; add_header Cache-Control "public, max-age=31536000, immutable" always; } location ~* \.(?:css|js|mjs|svg|png|jpg|jpeg|gif|webp|avif|ico)$ { try_files $uri =404; include /etc/nginx/conf.d/security-headers.conf; add_header Cache-Control "public, max-age=3600, must-revalidate" always; } location / { try_files $uri $uri/ =404; } error_page 404 /404.html; }