From 0a247fff189d36058b8639afc59196b2ac793d3e Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Fri, 13 Nov 2026 08:04:48 -0600 Subject: [PATCH] add auth exclusion for webhook api --- roles/authelia/templates/Caddyfile.j2 | 20 ++++++++++++------- .../authelia/templates/docker-compose.yml.j2 | 4 ++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/roles/authelia/templates/Caddyfile.j2 b/roles/authelia/templates/Caddyfile.j2 index 9675b8c..d254906 100644 --- a/roles/authelia/templates/Caddyfile.j2 +++ b/roles/authelia/templates/Caddyfile.j2 @@ -11,11 +11,17 @@ auth.{{ authelia_domain }} { } semaphore.frantecrt.duckdns.org { - # Import the auth configuration block - import authelia_auth + # Webhook endpoint: skip Authelia, Semaphore's own integration auth protects it + @webhook path /api/integrations/* + handle @webhook { + reverse_proxy semaphore.netbird.cloud:3000 + } - # Route the traffic to your backend application if authenticated - reverse_proxy semaphore.netbird.cloud:3000 + # Everything else: protected by Authelia + handle { + import authelia_auth + reverse_proxy semaphore.netbird.cloud:3000 + } } git.frantecrt.duckdns.org { @@ -26,9 +32,9 @@ git.frantecrt.duckdns.org { } wikijs.frantecrt.duckdns.org { - # Not using authelia_auth as it breaks the app's login page. + # Not using authelia_auth as it breaks the app's login page. reverse_proxy wikijs.netbird.cloud:3000 - + } vault.frantecrt.duckdns.org { @@ -52,4 +58,4 @@ navidrome.frantecrt.duckdns.org { # Route the traffic to your backend application if authenticated reverse_proxy navidrome.netbird.cloud:4533 -} \ No newline at end of file +} diff --git a/roles/authelia/templates/docker-compose.yml.j2 b/roles/authelia/templates/docker-compose.yml.j2 index 180e937..e8025fb 100644 --- a/roles/authelia/templates/docker-compose.yml.j2 +++ b/roles/authelia/templates/docker-compose.yml.j2 @@ -8,7 +8,7 @@ services: ports: - "127.0.0.1:{{ authelia_port }}:{{ authelia_port }}" environment: - - TZ={{ ansible_facts.timezone | default('UTC') }} + - TZ={{ ansible_facts['timezone'] | default('UTC') }} caddy: image: caddy:2 @@ -19,4 +19,4 @@ services: - /etc/resolv.conf:/etc/resolv.conf:ro - {{ authelia_base_dir }}/Caddyfile:/etc/caddy/Caddyfile - {{ authelia_data_dir }}/caddy_data:/data - - {{ authelia_data_dir }}/caddy_config:/config \ No newline at end of file + - {{ authelia_data_dir }}/caddy_config:/config