From 7eed3521924341178bba54569deaaa83e2b35864 Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 23 Jan 2026 11:01:15 +0000 Subject: [PATCH] feat(caddyfile): add nextcloud and onlyoffice support --- Caddyfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Caddyfile b/Caddyfile index adb4647..798df59 100755 --- a/Caddyfile +++ b/Caddyfile @@ -261,3 +261,42 @@ motsdepasse.interstices.pro { header_up X-Real-IP {remote_host} } } + +nextcloud.lucasroyer.fr { + # Large files + request_body { + max_size 10GB + } + + # Compression + encode zstd gzip + + # Log + log { + output file /data/nextcloud_access.log + } + + # Redirect + reverse_proxy nextcloud-web:80 { + header_up Host {host} + header_up X-Real-IP {remote_host} + } +} + +onlyoffice.lucasroyer.fr { + # Security + header { + Content-Security-Policy "frame-ancestors 'self' nextcloud.lucasroyer.fr" + X-Frame-Options "ALLOW-FROM https://nextcloud.lucasroyer.fr" + X-Content-Type-Options nosniff + } + + # Compression + encode zstd gzip + + # Redirect + reverse_proxy onlyoffice:80 { + header_up Host {host} + header_up X-Real-IP {remote_host} + } +}