From 6de4f905d8bf9ed1c1dae04ff1dc73ee4a2c2213 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 26 Sep 2023 22:10:12 +0200 Subject: [PATCH] static srv somewhat working? --- docker/caddy/Caddyfile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile index 1219fab..3642eba 100644 --- a/docker/caddy/Caddyfile +++ b/docker/caddy/Caddyfile @@ -1,8 +1,17 @@ http://localhost { - handle_path /proxy/db { + handle_path /static/* { + root * /srv/static + file_server { + hide .git + precompressed zstd br gzip + } } - - handle_path /proxy/blog { + handle_path /media/* { + root * /srv/media + file_server { + hide .git + precompressed zstd br gzip + } } reverse_proxy http://main