From 19ec50325f6248a9116053ecc475a36c598bcc41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julie=C3=B1?= Date: Mon, 25 Aug 2025 15:25:12 +0200 Subject: [PATCH] Actualiser On host/Caddy.md --- On host/Caddy.md | 187 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 181 insertions(+), 6 deletions(-) diff --git a/On host/Caddy.md b/On host/Caddy.md index 1c4795f..91618b5 100644 --- a/On host/Caddy.md +++ b/On host/Caddy.md @@ -67,6 +67,33 @@ sudo vim /etc/caddy/Caddyfile application_secret 6946758d7515ecef108aeb286bf3c7d0 consumer_key 94b2ddf482d36421a33aa6b3aa515956 } + + log { + output stderr + format filter { + # Preserves first 8 bits from IPv4 and 32 bits from IPv6 + request>remote_ip ip_mask 8 32 + request>client_ip ip_mask 8 32 + + # Remove identificable information + request>remote_port delete + request>headers delete + request>uri query { + delete url + delete h + delete q + } + } + } + + servers { + client_ip_headers X-Forwarded-For X-Real-IP + + # Allow the following IP to passthrough the "X-Forwarded-*" headers to SearXNG + # https://caddyserver.com/docs/caddyfile/options#trusted-proxies + trusted_proxies static private_ranges + trusted_proxies_strict + } } (LAN_only) { @@ -210,7 +237,7 @@ kontadenn.delmar.bzh { } minio.delmar.bzh { - reverse_proxy sheldon:9000 + reverse_proxy sandy:9000 encode gzip zstd } @@ -253,6 +280,11 @@ rallly.delmar.bzh { encode gzip zstd } +search.delmar.bzh + reverse_proxy carlo:23485 + encode gzip zstd +} + send.delmar.bzh { reverse_proxy krabs:53842 encode gzip zstd @@ -313,10 +345,153 @@ sudo systemctl restart caddy # Services -
ServiceHostIP:port
books.delmar.bzhsandy192.168.1.65:8083
bookstack.delmar.bzh - -sheldon192.168.1.230:6875
cloud.delmar.bzh - -sandy192.168.1.65:9880
cockpit.delmar.bzhbob192.168.1.99:9090
dolibarr.delmar.bzhcarlo192.168.1.163:8080
git.delmar.bzhcarlo192.168.1.163:3001
homepage.delmar.bzhbob192.168.1.99:5005
jellyfin.delmar.bzhsandy192.168.1.65:8096
jellyseer.delmar.bzhsandy192.168.1.65:5055
julien.delmar.bzhbob> Caddyfile
kontadenn.delmar.bzhbob> Caddyfile
nds.delmar.bzhbob> Caddyfile
nsns.delmar.bzhbob> Caddyfile
penpot.delmar.bzhcarlo192.168.1.163:8082
portainer.delmar.bzhbob192.168.1.99:9443
rallly.delmar.bzhcarlo192.168.1.163:3000
send.delmar.bzhkrabs192.168.1.229:8080
shop.delmar.bzhpatrick192.168.1.186:86
ugo.delmar.bzhpatrick192.168.1.186:82
uptime.delmar.bzhbob192.168.1.99:3001
vault.delmar.bzhcarlo192.168.1.163:8081
www.delmar.bzhbob> Caddyfile
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ServiceHostIP:port
books.delmar.bzhsandy192.168.1.65:8083
bookstack.delmar.bzhsheldon192.168.1.230:6875
cloud.delmar.bzhsandy192.168.1.65:9880
cockpit.delmar.bzhbob() 9090
ctr.delmar.bzhbob(compose-craft-saas) 47810
+ (compose-craft-db) 27017
dolibarr.delmar.bzhcarlo192.168.1.163:8080
dkr.delmar.bzhbob(dokemon) 32519
git.delmar.bzhcarlo192.168.1.163:3001
gotify.delmar.bzhbob(gotify) 41901
homepage.delmar.bzhbob192.168.1.99:5005
it.delmar.bzhbob(it-tools) 8888
jellyfin.delmar.bzhsandy192.168.1.65:8096
jellyseer.delmar.bzhsandy192.168.1.65:5055
julien.delmar.bzhbob> Caddyfile
kontadenn.delmar.bzhbob> Caddyfile
nds.delmar.bzhbob> Caddyfile
nsns.delmar.bzhbob> Caddyfile
penpot.delmar.bzhcarlo192.168.1.163:8082
portainer.delmar.bzhbob192.168.1.99:9443
rallly.delmar.bzhcarlo192.168.1.163:3000
send.delmar.bzhkrabs192.168.1.229:8080
shop.delmar.bzhpatrick192.168.1.186:86
twip.delmar.bzhbob(twip) 23473
ugo.delmar.bzhpatrick192.168.1.186:82
uptime.delmar.bzhbob192.168.1.99:3001
vault.delmar.bzhcarlo192.168.1.163:8081
www.delmar.bzhbob> Caddyfile