Skip to content

A live bird collage card for your Home Assistant dashboard.

LAN domain, IP address, or avahi-alias install

mcguirepr89db04d9bd1541
diff --git a/scripts/install_services.sh b/scripts/install_services.sh
index 4c206e60..24c04bd4 100755
--- a/scripts/install_services.sh
+++ b/scripts/install_services.sh
@@ -188,7 +188,7 @@ install_Caddyfile() {
if ! [ -z ${CADDY_PWD} ];then
HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})
cat << EOF > /etc/caddy/Caddyfile
-http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
@@ -224,7 +224,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
EOF
else
cat << EOF > /etc/caddy/Caddyfile
-http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
diff --git a/scripts/update_caddyfile.sh b/scripts/update_caddyfile.sh
index 8b247917..3fbd8a8d 100755
--- a/scripts/update_caddyfile.sh
+++ b/scripts/update_caddyfile.sh
@@ -9,7 +9,7 @@ fi
if ! [ -z ${CADDY_PWD} ];then
HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})
cat << EOF > /etc/caddy/Caddyfile
-http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
@@ -45,7 +45,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
EOF
else
cat << EOF > /etc/caddy/Caddyfile
-http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {