From 9c5d02260407c9c373b960fbb6e12bec854b6b7c Mon Sep 17 00:00:00 2001 From: Markus Busche Date: Thu, 3 Jul 2025 12:04:56 +0200 Subject: [PATCH] Update Caddyfile --- Caddyfile | 6 ++++-- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Caddyfile b/Caddyfile index e8b1e39..1d572c4 100644 --- a/Caddyfile +++ b/Caddyfile @@ -2,8 +2,10 @@ root * /usr/share/caddy file_server - # Behandle die HTML-Datei als Index - try_files {path} /Just%20a%20QR%20Code.html + @notStatic { + not path_regexp static \.\(js|css|png|jpg|jpeg|gif|svg|ico|json|webmanifest|map|txt|woff2?\)$ + } + try_files {path} /index.html @notStatic # CORS-Header für Cross-Origin-Requests header { diff --git a/Dockerfile b/Dockerfile index 4c1fff0..ca33c80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,4 +13,4 @@ COPY Caddyfile /etc/caddy/Caddyfile # Exponiere Port 80 EXPOSE 80 -# Caddy startet automatisch mit der Caddyfile-Konfiguration \ No newline at end of file +# Caddy startet automatisch mit der Caddyfile-Konfiguration