From 974c967e4f0fb2f570958a57ffca0f80a98688bf Mon Sep 17 00:00:00 2001 From: dado Date: Sat, 21 Jun 2025 21:12:16 +0200 Subject: [PATCH] formattato correttamente e aggiunto mail.novemila.org --- caddy/Caddyfile | 96 ++++++++++++++++++++++++++++--------------------- 1 file changed, 56 insertions(+), 40 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index ad8966b..80dde84 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -2,22 +2,22 @@ # Imposta il livello di log globale { - log { - output file /var/log/caddy/access.log { - roll_size 10mb - roll_keep 20 - roll_keep_for 720h - } - level INFO - } + log { + output file /var/log/caddy/access.log { + roll_size 10mb + roll_keep 20 + roll_keep_for 720h + } + level INFO + } } https://www.novemila.org { # Set this path to your site's directory. - root * /home/sistemostro/website/ + root * /home/sistemostro/website/ # Enable the static file server. - file_server + file_server # Another common task is to set up a reverse proxy: # reverse_proxy localhost:8080 @@ -27,33 +27,33 @@ https://www.novemila.org { } https://novemila.org { - redir https://www.novemila.org{uri} + redir https://www.novemila.org{uri} } # PHANPY https://phanpy.novemila.org { - root * /home/sistemostro/phanpy/ + root * /home/sistemostro/phanpy/ - file_server + file_server } # VAULTWARDEN https://vault.novemila.org { - reverse_proxy localhost:3001 + reverse_proxy localhost:3001 } # NTFY https://ntfy.novemila.org { - reverse_proxy localhost:3003 + reverse_proxy localhost:3003 } # RSS https://rss.novemila.org { - reverse_proxy localhost:3004 + reverse_proxy localhost:3004 } # COLLABORA @@ -70,33 +70,33 @@ https://rss.novemila.org { # GITEA https://git.novemila.org { - reverse_proxy localhost:3006 + reverse_proxy localhost:3006 } # KUMA https://mon.novemila.org { - reverse_proxy localhost:3007 + reverse_proxy localhost:3007 } # CASTOPOD https://podcast.novemila.org { - reverse_proxy localhost:3008 + reverse_proxy localhost:3008 } # NEXTCLOUD https://admin.cloud.novemila.org { - reverse_proxy localhost:3010 { - transport http { - tls_insecure_skip_verify - } - } + reverse_proxy localhost:3010 { + transport http { + tls_insecure_skip_verify + } + } } https://cloud.novemila.org { - reverse_proxy localhost:11000 + reverse_proxy localhost:11000 } # LIBRE-TRANSLATE @@ -108,59 +108,76 @@ https://cloud.novemila.org { # LINKWARDEN https://link.novemila.org { - reverse_proxy localhost:3012 + reverse_proxy localhost:3012 } # BESZEL https://server.novemila.org { - reverse_proxy localhost:3013 + reverse_proxy localhost:3013 } # GOT2SOCIAL # https://docs.gotosocial.org/en/latest/getting_started/reverse_proxy/caddy/ https://social.novemila.org { - redir / /about 301 - encode zstd gzip - reverse_proxy * localhost:3014 { - flush_interval -1 - } + redir / /about 301 + encode zstd gzip + reverse_proxy * localhost:3014 { + flush_interval -1 + } } # FMD https://fmd.novemila.org { - reverse_proxy localhost:3015 + reverse_proxy localhost:3015 } # GLANCE https://dashboard.novemila.org { - reverse_proxy localhost:3016 + reverse_proxy localhost:3016 } # 4GET https://search.novemila.org { - reverse_proxy localhost:3017 + reverse_proxy localhost:3017 } # IMMICH https://photo.novemila.org { - reverse_proxy localhost:3018 + reverse_proxy localhost:3018 } # READECK https://readeck.novemila.org { - reverse_proxy localhost:3019 + reverse_proxy localhost:3019 } # MOLLY https://molly.novemila.org { - reverse_proxy / localhost:8020 + reverse_proxy / localhost:8020 +} + +# MAILCOW + +mail.novemila.org autodiscover.mail.novemila.org autoconfig.mail.novemila.org { + log { + output file /var/log/caddy/mail.novemila.org.log { + roll_disabled + roll_size 512M + roll_uncompressed + roll_local_time + roll_keep 3 + roll_keep_for 48h + } + } + + reverse_proxy 127.0.0.1:8030 } # SNIKKET @@ -178,5 +195,4 @@ share.chat.novemila.org { transport http { tls_insecure_skip_verify } - } -} \ No newline at end of file + } \ No newline at end of file