From 971d534dca138d01f2d9b899e672ea607509eff8 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Fri, 26 Sep 2025 16:58:36 -0600 Subject: [PATCH] Updated example Caddyfile --- caddy/Caddyfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index f1ec8f1..e872f0f 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -23,8 +23,14 @@ localhost { } } -localhost:4404 { - # Full site protected, /auth/ reserved for auth service +example.com { + # Public endpoints in handle blocks before auth + @public path /favicon.ico /.well-known/* + handle @public { + root * /var/www/ + file_server + } + # The rest of the site protected, /auth/ reserved for auth service import auth/all perm=auth:admin { reverse_proxy :3000 }