Update the add-on to Bamboo v0.1.6 and add opt-in service discovery options

This commit is contained in:
Veillax committed 2026-10-30 19:14:34 -06:00
1 parent cd453221f6
commit 0bd7247766
7 files changed
+41 -4

No files matched your search

+13
View File
@@ -14,6 +14,19 @@ fi
export BAMBOO_HAMMERHEAD="${url%/}"
export BAMBOO_TOKEN="${token}"
# Service discovery is opt-in: Bamboo reports what it finds as suggested targets in Hammerhead.
if bashio::config.true 'discover'; then
export BAMBOO_DISCOVER=1
fi
subnets="$(bashio::config 'discover_subnets')"
if [ -n "${subnets}" ]; then
export BAMBOO_DISCOVER_SUBNETS="${subnets}"
fi
ports="$(bashio::config 'discover_ports')"
if [ -n "${ports}" ]; then
export BAMBOO_DISCOVER_PORTS="${ports}"
fi
bashio::log.info "Starting $(bamboo -version), connecting to ${BAMBOO_HAMMERHEAD}"
# /data survives restarts and updates; it holds this site's WireGuard key.
exec bamboo -data /data