From db04d9bd15417ab6365886ce1f919323b0cbaffb Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Fri, 10 Jun 2022 14:13:18 -0400 Subject: [PATCH] LAN domain, IP address, or avahi-alias install --- scripts/install_services.sh | 4 ++-- scripts/update_caddyfile.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 4c206e6..24c04bd 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 8b24791..3fbd8a8 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/* {