diff --git a/Caddyfile b/Caddyfile index 5e20780..b5000da 100644 --- a/Caddyfile +++ b/Caddyfile @@ -31,19 +31,19 @@ stargirlnails.de { output file /var/log/caddy/access.log format json } + + # Favicon-Konfiguration (innerhalb der Hauptdomain) + handle /favicon.ico { + redir /favicon.png 301 + } + + handle /favicon.png { + root * /app/public + try_files {path} + } } # HTTP zu HTTPS Redirect (automatisch von Caddy) http://stargirlnails.de { redir https://stargirlnails.de{uri} permanent } - -# Favicon-Konfiguration -favicon.ico { - redir /favicon.png 301 -} - -favicon.png { - root * /app/public - try_files {path} -}