From 2096f20516e4e0f34053bf9f8b3c0bd950a1810b Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 13 Jan 2026 12:46:42 +0100 Subject: [PATCH] feat(caddyfile): add uptime kuma support --- Caddyfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Caddyfile b/Caddyfile index 37a036d..f5479c6 100755 --- a/Caddyfile +++ b/Caddyfile @@ -102,4 +102,27 @@ gitea.lucasroyer.fr { reverse_proxy gitea-app:3000 { flush_interval -1 } +} + +kuma.lucasroyer.fr { + # Security + header { + X-Frame-Options "SAMEORIGIN" + X-XSS-Protection "1; mode=block" + X-Content-Type-Options "nosniff" + Referrer-Policy "strict-origin-when-cross-origin" + Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + } + + # Compression + encode zstd gzip + + # Log + log { + output file /data/kuma_access.log + } + + # Redirect + reverse_proxy uptime-kuma:3001 { + } } \ No newline at end of file