From 8d37aa2bc908d55208631fa6fe2c4afdd8bb3441 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 10 Jan 2026 18:57:14 +0100 Subject: [PATCH] feat(caddyfile) : add gitea support --- Caddyfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Caddyfile b/Caddyfile index 922a0ee..37a036d 100755 --- a/Caddyfile +++ b/Caddyfile @@ -74,3 +74,32 @@ portfolio.lucasroyer.fr { # Redirect reverse_proxy portfolio:80 } + +gitea.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" + } + + # Large files + request_body { + max_size 512MB + } + + # Compression + encode zstd gzip + + # Log + log { + output file /data/gitea_access.log + } + + # Redirect + reverse_proxy gitea-app:3000 { + flush_interval -1 + } +} \ No newline at end of file