add auth exclusion for webhook api

This commit is contained in:
tolerryan
2026-11-13 08:04:48 -06:00
parent 6f920e4497
commit 0a247fff18
2 changed files with 15 additions and 9 deletions

View File

@@ -11,11 +11,17 @@ auth.{{ authelia_domain }} {
} }
semaphore.frantecrt.duckdns.org { semaphore.frantecrt.duckdns.org {
# Import the auth configuration block # Webhook endpoint: skip Authelia, Semaphore's own integration auth protects it
import authelia_auth @webhook path /api/integrations/*
handle @webhook {
reverse_proxy semaphore.netbird.cloud:3000
}
# Route the traffic to your backend application if authenticated # Everything else: protected by Authelia
reverse_proxy semaphore.netbird.cloud:3000 handle {
import authelia_auth
reverse_proxy semaphore.netbird.cloud:3000
}
} }
git.frantecrt.duckdns.org { git.frantecrt.duckdns.org {
@@ -26,9 +32,9 @@ git.frantecrt.duckdns.org {
} }
wikijs.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 reverse_proxy wikijs.netbird.cloud:3000
} }
vault.frantecrt.duckdns.org { vault.frantecrt.duckdns.org {
@@ -52,4 +58,4 @@ navidrome.frantecrt.duckdns.org {
# Route the traffic to your backend application if authenticated # Route the traffic to your backend application if authenticated
reverse_proxy navidrome.netbird.cloud:4533 reverse_proxy navidrome.netbird.cloud:4533
} }

View File

@@ -8,7 +8,7 @@ services:
ports: ports:
- "127.0.0.1:{{ authelia_port }}:{{ authelia_port }}" - "127.0.0.1:{{ authelia_port }}:{{ authelia_port }}"
environment: environment:
- TZ={{ ansible_facts.timezone | default('UTC') }} - TZ={{ ansible_facts['timezone'] | default('UTC') }}
caddy: caddy:
image: caddy:2 image: caddy:2
@@ -19,4 +19,4 @@ services:
- /etc/resolv.conf:/etc/resolv.conf:ro - /etc/resolv.conf:/etc/resolv.conf:ro
- {{ authelia_base_dir }}/Caddyfile:/etc/caddy/Caddyfile - {{ authelia_base_dir }}/Caddyfile:/etc/caddy/Caddyfile
- {{ authelia_data_dir }}/caddy_data:/data - {{ authelia_data_dir }}/caddy_data:/data
- {{ authelia_data_dir }}/caddy_config:/config - {{ authelia_data_dir }}/caddy_config:/config