Skip to content

A live bird collage card for your Home Assistant dashboard.

with this address line, no need for the others

mcguirepr89d0d11f49b245
diff --git a/scripts/install_services.sh b/scripts/install_services.sh
index 24c04bd4..17c43975 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:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
@@ -224,7 +224,7 @@ http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
EOF
else
cat << EOF > /etc/caddy/Caddyfile
-http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
diff --git a/scripts/update_caddyfile.sh b/scripts/update_caddyfile.sh
index 3fbd8a8d..1d5286ae 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:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
@@ -45,7 +45,7 @@ http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
EOF
else
cat << EOF > /etc/caddy/Caddyfile
-http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
+http:// ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {