diff --git a/Caddyfile b/Caddyfile index f8f7f39..2c9350b 100755 --- a/Caddyfile +++ b/Caddyfile @@ -151,3 +151,36 @@ n8n.lucasroyer.fr { header_up X-Real-IP {remote_host} } } + +ntfy.lucasroyer.fr { + # Security + header { + X-Frame-Options "SAMEORIGIN" + X-Content-Type-Options "nosniff" + X-XSS-Protection "1; mode=block" + Referrer-Policy "strict-origin-when-cross-origin" + Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + } + + # No cache + header -Cache-Control + header -Expires + + # Large files + request_body { + max_size 512MB + } + + # Compression + encode gzip + + # Log + log { + output file /data/ntfy_access.log + } + + # Redirect + reverse_proxy ntfy:80 { + flush_interval -1 + } +}