diff --git a/roles/authelia/templates/Caddyfile.j2 b/roles/authelia/templates/Caddyfile.j2 index f55ba26..bc4882e 100644 --- a/roles/authelia/templates/Caddyfile.j2 +++ b/roles/authelia/templates/Caddyfile.j2 @@ -27,11 +27,19 @@ git.frantecrt.duckdns.org { } wikijs.frantecrt.duckdns.org { - # Import the auth configuration block - import authelia_auth + @bypass_auth { + path /graphql* + path /login* + } - # Route the traffic to your backend application if authenticated - reverse_proxy wikijs.netbird.cloud:3000 + handle @bypass_auth { + reverse_proxy wikijs.netbird.cloud:3000 + } + + handle { + import authelia_auth + reverse_proxy wikijs.netbird.cloud:3000 + } } vault.frantecrt.duckdns.org {