From e81558399539b77e87b26ec20ed679a9d5917379 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Tue, 28 Apr 2026 19:03:09 +0200 Subject: [PATCH] change --- Caddyfile | 187 ++++++++++++++++++++++-------------------------------- 1 file changed, 76 insertions(+), 111 deletions(-) diff --git a/Caddyfile b/Caddyfile index 402ad9e..458dbbb 100644 --- a/Caddyfile +++ b/Caddyfile @@ -2,8 +2,17 @@ email {env.CLOUDFLARE_EMAIL} acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN} acme_ca https://acme-v02.api.letsencrypt.org/directory - debug } +:80 { + respond "Caddy alive on new Contabo — migration in progress" 200 +} + +git.bizmatch.net { + handle { + reverse_proxy gitea:3500 + } +} + ############## ##### BIZMATCH ############## @@ -30,21 +39,7 @@ auth.bizmatch.net { header_up X-Real-IP {remote_host} } } -git.bizmatch.net { - handle { - reverse_proxy gitea:3500 - } -} - -############## -##### QRMASTER -############## -www.qrmaster.net, qrmaster.net { - handle { - reverse_proxy qrmaster-web:3000 - } -} ############## ##### INNUNGSAPP ############## @@ -58,28 +53,60 @@ www.innungsapp.com, innungsapp.com { } encode gzip } -############## -##### BAYAREA -############## -bayarea-cc.com { - # 1. API Requests -> NestJS Backend auf Port 3073 - handle /api/* { - reverse_proxy host.docker.internal:3073 - } - # 2. Frontend Requests -> Angular Nginx auf Port 3072 - handle { - reverse_proxy host.docker.internal:3072 - } - - log { - output file /var/log/caddy/bayarea.access.log - } - encode gzip zstd +############## +##### GREENLENS +############## +greenlenspro.com { + encode zstd gzip + + @storage path /storage /storage/* + handle @storage { + uri strip_prefix /storage + reverse_proxy minio:9000 + } + + @api path /api /api/* /auth /auth/* /v1 /v1/* /health /plants /plants/* + handle @api { + reverse_proxy api:3000 + } + + handle { + reverse_proxy landing:3000 + } } -www.bayarea-cc.com { - redir https://bayarea-cc.com{uri} permanent +############## +##### QRMASTER +############## +www.qrmaster.net, qrmaster.net { + handle { + reverse_proxy qrmaster-web:3000 + } +} + +############################ +##### config.email-bayarea.com +############################ +config.email-bayarea.com { + # 1. API-Anfragen an das Node.js Backend weiterleiten + handle /api/* { + reverse_proxy config-email-backend:3001 + } + handle /health { + reverse_proxy config-email-backend:3001 + } + + # 2. Alles andere an das Nginx Frontend weiterleiten + handle { + reverse_proxy config-email-frontend:80 + } + + log { + output file /var/log/caddy/config-email.log + format console + } + encode gzip zstd } ############## @@ -106,50 +133,31 @@ annavillesda.org { www.annavillesda.org { redir https://annavillesda.org{uri} permanent } + ############## -##### GREENLENS +##### BAYAREA ############## -greenlenspro.com { - encode zstd gzip - - @storage path /storage /storage/* - handle @storage { - uri strip_prefix /storage - reverse_proxy minio:9000 - } - - @api path /api /api/* /auth /auth/* /v1 /v1/* /health /plants /plants/* - handle @api { - reverse_proxy api:3000 - } - - handle { - reverse_proxy landing:3000 - } -} -############################ -##### config.email-bayarea.com -############################ -config.email-bayarea.com { - # 1. API-Anfragen an das Node.js Backend weiterleiten +bayarea-cc.com { + # 1. API Requests -> NestJS Backend auf Port 3073 handle /api/* { - reverse_proxy config-email-backend:3001 - } - handle /health { - reverse_proxy config-email-backend:3001 + reverse_proxy host.docker.internal:3073 } - # 2. Alles andere an das Nginx Frontend weiterleiten + # 2. Frontend Requests -> Angular Nginx auf Port 3072 handle { - reverse_proxy config-email-frontend:80 + reverse_proxy host.docker.internal:3072 } - + log { - output file /var/log/caddy/config-email.log - format console + output file /var/log/caddy/bayarea.access.log } encode gzip zstd } + +www.bayarea-cc.com { + redir https://bayarea-cc.com{uri} permanent +} + ############## ##### POCS ############## @@ -164,39 +172,7 @@ cielectrical.bayarea-cc.com { } encode gzip zstd } -hamptonbrown.bayarea-cc.com { - # wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess - handle { - reverse_proxy host.docker.internal:3010 - } - log { - output file /var/log/caddy/hamptonbrown.log - format console - } - encode gzip -} -nqsltd.bayarea-cc.com { - # wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess - handle { - reverse_proxy host.docker.internal:3020 - } - log { - output file /var/log/caddy/nqsltd.log - format console - } - encode gzip -} -gregknoppcpa.bayarea-cc.com { - # wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess - handle { - reverse_proxy host.docker.internal:3030 - } - log { - output file /var/log/caddy/gregknoppcpa.log - format console - } - encode gzip -} + buddelectric.bayarea-cc.com { handle { # NEU: Direkter Proxy zum Container auf dem nativen Next.js Port @@ -208,14 +184,3 @@ buddelectric.bayarea-cc.com { } encode gzip zstd } -iitwelders.bayarea-cc.com { - # wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess - handle { - reverse_proxy host.docker.internal:8080 - } - log { - output file /var/log/caddy/iitwelders.log - format console - } - encode gzip -} \ No newline at end of file