mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-01 01:33:32 +02:00
Improve Claude optimization tooling
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# Headroom optimization proxy — local backend for Claude Desktop MCP and Claude Code.
|
# Headroom optimization proxy — local backend for Claude Desktop MCP and Claude Code.
|
||||||
declare port=8787
|
declare port=8787
|
||||||
# Bind all interfaces so the dashboard is reachable on the mapped host port
|
declare host=127.0.0.1
|
||||||
# (http://<ha-ip>:8787/dashboard). Local consumers keep using 127.0.0.1.
|
|
||||||
declare host=0.0.0.0
|
# The dashboard is unauthenticated. Keep it container-local by default and bind all
|
||||||
|
# interfaces only when the user explicitly opts in and maps port 8787.
|
||||||
|
if bashio::config.true 'expose_headroom_dashboard'; then
|
||||||
|
host=0.0.0.0
|
||||||
|
fi
|
||||||
|
|
||||||
if bashio::config.true 'install_headroom' && command -v headroom > /dev/null 2>&1; then
|
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}"
|
bashio::log.info "svc-headroom: starting local Headroom proxy on ${host}:${port}"
|
||||||
|
|||||||
Reference in New Issue
Block a user