From 57c5afc0c89b16641f8c6514d8b6b638cb729e95 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 21 Apr 2025 08:27:34 -0500 Subject: [PATCH] r/frigate: Fix Authelia redirect HTTP 301 is "moved permanently." Browsers will cache this response and never send the request to the real server again. We need to use a temporary redirect, such as "see other" to avoid getting stuck in a login loop. --- roles/frigate-caddy/templates/Caddyfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/frigate-caddy/templates/Caddyfile.j2 b/roles/frigate-caddy/templates/Caddyfile.j2 index efc9b1b..32a2ad1 100644 --- a/roles/frigate-caddy/templates/Caddyfile.j2 +++ b/roles/frigate-caddy/templates/Caddyfile.j2 @@ -8,7 +8,7 @@ @unauthorized status 401 handle_response @unauthorized { - respond "" 301 + respond "" 303 header Location {{ frigate_caddy_forward_auth.url}}{{ frigate_caddy_forward_auth.location }} } }