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 {