From b7cedcae3dca8cb097fe0cda6b011dffade6841a Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Fri, 21 Feb 2025 14:25:56 -0600 Subject: [PATCH] working config --- caddy/Caddyfile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 8420ef7..df62c23 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -17,21 +17,15 @@ bayarea-cc.com, www.bayarea-cc.com { dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG } - # Reverse Proxy für API-Anfragen (hat Vorrang) - @api { - path /api/* - } - reverse_proxy @api host.docker.internal:3001 { - header_up X-Real-IP {remote_host} + handle /api { + reverse_proxy host.docker.internal:3001 } - # Statische Dateien nur für nicht-API-Pfade - @notApi { - not path /api/* + handle { + root * /app + try_files {path} /index.html + file_server } - root * /app - try_files @notApi {path} /index.html - file_server @notApi # Logging für Debugging log {