server {
  # Nginx versions 1.25+
  listen 443 ssl;
  listen [::]:443 ssl;
  http2 on;

  server_name sage.loadingm.xyz;
  acme_certificate      letsencrypt;
  ssl_certificate       $acme_certificate; 
  ssl_certificate_key   $acme_certificate_key; 
  ssl_certificate_cache max=2;

  ## The default `client_max_body_size` is 1M, this might not be enough for some posters, etc.
  client_max_body_size 200G;

  # Security / XSS Mitigation Headers
  add_header X-Content-Type-Options "nosniff";

  # Permissions policy. May cause issues with some clients
  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;


  location / {
    return 404;
  }
}
