diff --git a/homepage/style.css b/homepage/style.css index 8cc0ede..bdf9f1b 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -5,31 +5,7 @@ font-size: large; } -/*table { - background-color: transparent; - border-collapse: collapse; - border-spacing: 0; - width: 100%; -}*/ -td { - padding: 10px; - vertical-align: top; - background-color: rgb(219, 255, 235); - font-weight: lighter; - border: 2px solid black; - text-align: center; -} - -th { - font-weight: bold; - height: auto; - text-align: center; -} - -audio, video{ - width: 100%; -} .banner { height: auto; text-align: center; @@ -138,7 +114,32 @@ body { background-color: rgb(119, 196, 135); } +table { + background-color: transparent; + border-collapse: collapse; + border-spacing: 0; + margin-left: auto; + margin-right: auto; +} +td { + padding: 10px; + vertical-align: top; + background-color: rgb(219, 255, 235); + font-weight: lighter; + border: 2px solid black; + text-align: center; +} + +th { + font-weight: bold; + height: auto; + text-align: center; +} + +audio, video{ + width: 100%; +} .spectrogram { width:50% diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 0686de4..47ff0af 100755 --- a/scripts/install_services.sh +++ b/scripts/install_services.sh @@ -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 } diff --git a/scripts/update_caddyfile.sh b/scripts/update_caddyfile.sh index 180dcae..f170f64 100755 --- a/scripts/update_caddyfile.sh +++ b/scripts/update_caddyfile.sh @@ -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} }