LAN domain, IP address, or avahi-alias install

This commit is contained in:
mcguirepr89
2022-06-10 14:13:18 -04:00
parent 056ce73065
commit db04d9bd15
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ install_Caddyfile() {
if ! [ -z ${CADDY_PWD} ];then if ! [ -z ${CADDY_PWD} ];then
HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD}) HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})
cat << EOF > /etc/caddy/Caddyfile cat << EOF > /etc/caddy/Caddyfile
http://localhost http://$(hostname).local ${BIRDNETPI_URL} { http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED} root * ${EXTRACTED}
file_server browse file_server browse
handle /By_Date/* { handle /By_Date/* {
@@ -224,7 +224,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
EOF EOF
else else
cat << EOF > /etc/caddy/Caddyfile cat << EOF > /etc/caddy/Caddyfile
http://localhost http://$(hostname).local ${BIRDNETPI_URL} { http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED} root * ${EXTRACTED}
file_server browse file_server browse
handle /By_Date/* { handle /By_Date/* {
+2 -2
View File
@@ -9,7 +9,7 @@ fi
if ! [ -z ${CADDY_PWD} ];then if ! [ -z ${CADDY_PWD} ];then
HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD}) HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})
cat << EOF > /etc/caddy/Caddyfile cat << EOF > /etc/caddy/Caddyfile
http://localhost http://$(hostname).local ${BIRDNETPI_URL} { http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED} root * ${EXTRACTED}
file_server browse file_server browse
handle /By_Date/* { handle /By_Date/* {
@@ -45,7 +45,7 @@ http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
EOF EOF
else else
cat << EOF > /etc/caddy/Caddyfile cat << EOF > /etc/caddy/Caddyfile
http://localhost http://$(hostname).local ${BIRDNETPI_URL} { http:// http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED} root * ${EXTRACTED}
file_server browse file_server browse
handle /By_Date/* { handle /By_Date/* {