From 7aea3ba11ee63f94bba34bbe554fec1130a477f2 Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 23 Jan 2026 14:31:59 +0000 Subject: [PATCH] feat(caddyfile): add spationautes and veloboomboom support --- Caddyfile | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/Caddyfile b/Caddyfile index 02362fb..63ec1ad 100755 --- a/Caddyfile +++ b/Caddyfile @@ -323,3 +323,81 @@ onlyoffice.lucasroyer.fr { header_up X-Real-IP {remote_host} } } + +spationautes.fr { + # Server cache + cache { + ttl 24h + stale 12h + } + # Security + header { + X-Frame-Options "DENY" + 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" + } + + # Errors + handle_errors { + # If error is 502, 503 or 504, show error.html without changing client URL + @service_out expression {err.status_code} >= 502 && {err.status_code} <= 504 + + handle @service_out { + root * /srv + rewrite * /error.html + file_server + } + } + + # Compression + encode zstd gzip + + # Log + log { + output file /data/site-spationautes_access.log + } + + # Redirect + reverse_proxy site-spationautes:80 +} + +veloboomboom.internantes.ovh, veloboomboom.lucasroyer.fr { + # Server cache + cache { + ttl 24h + stale 12h + } + # Security + header { + X-Frame-Options "DENY" + 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" + } + + # Errors + handle_errors { + # If error is 502, 503 or 504, show error.html without changing client URL + @service_out expression {err.status_code} >= 502 && {err.status_code} <= 504 + + handle @service_out { + root * /srv + rewrite * /error.html + file_server + } + } + + # Compression + encode zstd gzip + + # Log + log { + output file /data/site-veloboomboom_access.log + } + + # Redirect + reverse_proxy site-veloboomboom:80 +}