allow access to restricted area in ingress

This commit is contained in:
Alexandre
2024-05-17 11:52:19 +02:00
committed by GitHub
parent 9a4ff63342
commit 64ed4cab85

View File

@@ -18,6 +18,10 @@ ingress_entry=$(bashio::addon.ingress_entry)
# Quits if ingress not active
if [ -z "$ingress_entry" ]; then exit 0; fi
# Create .htpasswd
export "$(grep "^CADDY_PWD" /config/birdnet.conf)"
htpasswd -b -c /home/pi/.htpasswd birdnet "$CADDY_PWD" &>/dev/null
echo " "
bashio::log.info "Adapting for ingress"
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf