From b70aeac1515f6867917f541e05bc4ceff394035b Mon Sep 17 00:00:00 2001 From: Jake Herbst Date: Sun, 15 May 2022 13:10:39 -0400 Subject: [PATCH] Fixing bug in Caddyfile with the '/views.php?view=File*' path. Caddyfile expects all path specific 'matchers' to begin with a '/' https://caddyserver.com/docs/caddyfile/matchers#syntax --- scripts/install_services.sh | 2 +- scripts/update_caddyfile.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_services.sh b/scripts/install_services.sh index d740ad3..b909977 100755 --- a/scripts/install_services.sh +++ b/scripts/install_services.sh @@ -212,7 +212,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} { handle /Charts/* { file_server browse } - basicauth views.php?view=File* { + basicauth /views.php?view=File* { birdnet ${HASHWORD} } basicauth /Processed* { diff --git a/scripts/update_caddyfile.sh b/scripts/update_caddyfile.sh index f26fe03..b803f1a 100755 --- a/scripts/update_caddyfile.sh +++ b/scripts/update_caddyfile.sh @@ -18,7 +18,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} { handle /Charts/* { file_server browse } - basicauth views.php?view=File* { + basicauth /views.php?view=File* { birdnet ${HASHWORD} } basicauth /Processed* {