mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-05 01:13:32 +02:00
13 lines
535 B
Plaintext
Executable File
13 lines
535 B
Plaintext
Executable File
#!/usr/bin/with-contenv bashio
|
|
# Headroom optimization proxy — local backend for Claude Desktop MCP and Claude Code.
|
|
declare port=8787
|
|
declare host=127.0.0.1
|
|
|
|
if bashio::config.true 'install_headroom' && command -v headroom >/dev/null 2>&1; then
|
|
bashio::log.info "svc-headroom: starting local Headroom proxy on ${host}:${port}"
|
|
exec s6-setuidgid abc headroom proxy --host "${host}" --port "${port}" --code-aware
|
|
fi
|
|
|
|
bashio::log.info "svc-headroom: install_headroom disabled or headroom not found; idling"
|
|
exec sleep infinity
|