server { listen 8080 default_server; listen [::]:8080 default_server; server_name _; root /usr/share/nginx/html; index index.html; charset utf-8; server_tokens off; autoindex off; access_log off; add_header Strict-Transport-Security "max-age=31536000" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Frame-Options "DENY" always; add_header X-Permitted-Cross-Domain-Policies "none" always; add_header Referrer-Policy "no-referrer" always; add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=(), browsing-topics=()" always; add_header Cross-Origin-Opener-Policy "same-origin" always; add_header Cross-Origin-Resource-Policy "same-origin" always; add_header Content-Security-Policy "default-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; object-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self' data:; connect-src 'self'; media-src 'self'; manifest-src 'self'; worker-src 'none'; upgrade-insecure-requests" always; if ($request_method !~ ^(GET|HEAD)$) { return 405; } gzip on; gzip_vary on; gzip_min_length 1024; gzip_types text/plain text/css application/javascript application/json application/manifest+json image/svg+xml; location = /healthz { access_log off; default_type text/plain; return 200 "ok\n"; } location = /index.html { expires -1; try_files $uri =404; } location ~* \.(?:css|js|png|jpe?g|gif|svg|ico|webmanifest)$ { expires 1h; try_files $uri =404; } location / { try_files $uri $uri/ =404; } error_page 404 /404.html; location = /404.html { internal; } }