Update Caddyfile

This commit is contained in:
Markus Busche
2025-07-03 12:04:56 +02:00
parent 83f49d14bc
commit 9c5d022604
2 changed files with 5 additions and 3 deletions

View File

@@ -2,8 +2,10 @@
root * /usr/share/caddy root * /usr/share/caddy
file_server file_server
# Behandle die HTML-Datei als Index @notStatic {
try_files {path} /Just%20a%20QR%20Code.html 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 # CORS-Header für Cross-Origin-Requests
header { header {

View File

@@ -13,4 +13,4 @@ COPY Caddyfile /etc/caddy/Caddyfile
# Exponiere Port 80 # Exponiere Port 80
EXPOSE 80 EXPOSE 80
# Caddy startet automatisch mit der Caddyfile-Konfiguration # Caddy startet automatisch mit der Caddyfile-Konfiguration