From 0ef7b030737e80363dbf28aee6a4b0cfa4f2ff4d Mon Sep 17 00:00:00 2001 From: dado Date: Sat, 1 Nov 2025 15:47:06 +0100 Subject: [PATCH] rimosso server header e aggiunto compressione --- etc/caddy/Caddyfile | 81 ++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/etc/caddy/Caddyfile b/etc/caddy/Caddyfile index df0aba4..4a7c1ac 100644 --- a/etc/caddy/Caddyfile +++ b/etc/caddy/Caddyfile @@ -6,7 +6,9 @@ # Format file # caddy fmt /etc/caddy/Caddyfile --overwrite -# Imposta il livello di log globale +# The Caddyfile is an easy way to configure your Caddy web server. + +# Global Rules { log { output file /var/log/caddy/access.log { @@ -18,18 +20,18 @@ } } -https://www.novemila.org { - # Set this path to your site's directory. - root * /home/sistemostro/novemila/ +(common) { + header /* { + -Server + } +} +https://www.novemila.org { + import common + encode gzip zstd + root * /home/sistemostro/novemila/ # Enable the static file server. file_server - - # Another common task is to set up a reverse proxy: - # reverse_proxy localhost:8080 - - # Or serve a PHP site through php-fpm: - # php_fastcgi localhost:9000 } https://novemila.org { @@ -40,9 +42,10 @@ https://novemila.org { # BEOPEN https://beopen.novemila.org { + import common + encode gzip zstd # Set this path to your site's directory. root * /home/sistemostro/beopen/website/ - # Enable the static file server. file_server } @@ -50,18 +53,24 @@ https://beopen.novemila.org { # VAULTWARDEN https://vault.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3001 } # NTFY https://ntfy.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3003 } # RSS https://rss.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3004 } @@ -79,24 +88,24 @@ https://rss.novemila.org { # GITEA https://git.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3006 } # KUMA https://mon.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3007 } -# CASTOPOD - -#https://podcast.novemila.org { -# reverse_proxy localhost:3008 -#} - # NEXTCLOUD https://admin.cloud.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3010 { transport http { tls_insecure_skip_verify @@ -105,62 +114,54 @@ https://admin.cloud.novemila.org { } https://cloud.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:11000 } -# LINKWARDEN - -https://link.novemila.org { - reverse_proxy localhost:3012 -} - # BESZEL https://server.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3013 } # GOT2SOCIAL - # https://docs.gotosocial.org/en/latest/getting_started/reverse_proxy/caddy/ https://social.novemila.org { + import common + encode gzip zstd redir / /about 301 - encode zstd gzip reverse_proxy * localhost:3014 { flush_interval -1 } } -# FMD - -#https://fmd.novemila.org { -# reverse_proxy localhost:3015 -#} - # GLANCE https://dashboard.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3016 } # 4GET https://search.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3017 } # IMMICH https://photo.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3018 } -# READECK - -#https://readeck.novemila.org { -# reverse_proxy localhost:3019 -#} - # MAILCOW mail.novemila.org autodiscover.novemila.org autoconfig.novemila.org { @@ -175,18 +176,24 @@ mail.novemila.org autodiscover.novemila.org autoconfig.novemila.org { } } + import common + encode gzip zstd reverse_proxy 127.0.0.1:3020 } # LINKDING https://linkding.novemila.org { + import common + encode gzip zstd reverse_proxy localhost:3021 } # MOLLY https://molly.novemila.org { + import common + encode gzip zstd reverse_proxy / localhost:8020 }