LAN domain, IP address, or avahi-alias install
This commit is contained in:
@@ -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/* {
|
||||||
|
|||||||
@@ -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/* {
|
||||||
|
|||||||
Reference in New Issue
Block a user