Skip to content

Instantly share code, notes, and snippets.

@rodhfr
Created December 13, 2025 23:02
Show Gist options
  • Select an option

  • Save rodhfr/5d3a6010a10ac1adafd922372b74277c to your computer and use it in GitHub Desktop.

Select an option

Save rodhfr/5d3a6010a10ac1adafd922372b74277c to your computer and use it in GitHub Desktop.
client_max_body_size 20M;
proxy_buffering off;
add_header X-Content-Type-Options "nosniff" always;
add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), battery=(), bluetooth=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), keyboard-map=(), local-fonts=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=(), serial=(), sync-xhr=(), usb=(), xr-spatial-tracking=()" always;
add_header Content-Security-Policy "default-src https: data: blob: ; img-src 'self' https://* ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; font-src 'self'" always;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment