adjusting for installations

This commit is contained in:
mcguirepr89
2022-03-03 09:27:30 -05:00
parent 147358a9c5
commit 4108028931
3 changed files with 43 additions and 27 deletions
+12 -2
View File
@@ -214,7 +214,12 @@ install_Caddyfile() {
cat << EOF > /etc/caddy/Caddyfile
http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
file_server browse
}
handle /Charts/* {
file_server browse
}
basicauth /Processed* {
birdnet ${HASHWORD}
}
@@ -235,7 +240,12 @@ EOF
cat << EOF > /etc/caddy/Caddyfile
http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
file_server browse
}
handle /Charts/* {
file_server browse
}
reverse_proxy /stream localhost:8000
php_fastcgi unix//run/php/php7.4-fpm.sock
}
+6 -1
View File
@@ -13,7 +13,12 @@ HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})
cat << EOF > /etc/caddy/Caddyfile
http://localhost http://$(hostname).local ${BIRDNETPI_URL} {
root * ${EXTRACTED}
file_server browse
handle /By_Date/* {
file_server browse
}
handle /Charts/* {
file_server browse
}
basicauth /Processed* {
birdnet ${HASHWORD}
}