From 32b14ab1518fe740855988140352739355169cbb Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Sat, 13 Jan 2024 16:04:59 +0100 Subject: [PATCH] Allow browsing assets --- Caddyfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Caddyfile b/Caddyfile index c232038..fce2ad9 100644 --- a/Caddyfile +++ b/Caddyfile @@ -33,8 +33,13 @@ header { root * /srv/http/phil.red encode gzip -try_files {path} /index.html -file_server +handle /assets/* { + file_server browse +} +handle { + try_files {path} /index.html + file_server +} # Import additional caddy config files in /etc/caddy/conf.d/ import /etc/caddy/conf.d/*