diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 24c04bd..17c4397 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 3fbd8a8..1d5286a 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/* {