From af7e36c244a6d28047159c705b9eb0b3a5bab467 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Thu, 9 Apr 2026 17:47:27 -0500 Subject: [PATCH] bayarea-cc.com --- Caddyfile | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/Caddyfile b/Caddyfile index ecbd294..cd4ac4f 100644 --- a/Caddyfile +++ b/Caddyfile @@ -125,25 +125,22 @@ innungsapp.com { ##### BAYAREA ############## bayarea-cc.com { - # TLS-Direktive entfernen, falls Cloudflare die Verbindung terminiert - # tls { - # dns cloudflare {env.CLOUDFLARE_API_TOKEN} - # } - - handle /api { - reverse_proxy host.docker.internal:3001 + # 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 { - root * /app - try_files {path} /index.html - file_server + reverse_proxy host.docker.internal:3072 } + log { - output stderr - format console + output file /var/log/caddy/bayarea.access.log } - encode gzip + encode gzip zstd } + www.bayarea-cc.com { redir https://bayarea-cc.com{uri} permanent }