feat(hermes_squid): add hermes-proxy service and voice-gateway to hermes_infra #4

Closed
hermes wants to merge 5 commits from feat/voice-gateway-proxy into infra/gitea-update
5 Commits
Author SHA1 Message Date
hermes c2f1b0684a fix(hermes_squid): hardcode voice-gateway image tag to v0.3.0
brencher's ${version} substitution expands to auto-<merge-sha> at deploy
time, but the image was pushed under a semver tag (v0.3.0) by Gitea
Actions, so the deploy fails with 'No such image'.

Hardcoding the tag in compose.yml makes the deploy deterministic and
removes the brencher coupling. Bumping the voice-gateway release now
requires updating this string in addition to the tag in
Org1/hermes-voice-gateway.

Bump sequence:
  1. Push tag v0.4.0 in Org1/hermes-voice-gateway -> workflow builds image
  2. Update this string to v0.4.0
  3. brencher deploys
2026-09-13 16:36:55 +00:00
hermes 24ede4aea7 fix(hermes_squid): drop HERMES_PROXY_TOKEN env (auth skipped for MVP)
hermes-proxy listens on hermes_proxy overlay which is internal:true —
no external ingress. Auth between voice-gateway and hermes-proxy is not
required for MVP, and brencher was rejecting the ${HERMES_PROXY_TOKEN}
substitution as missing key.

Removing the line lets brencher apply the compose; the gateway already
connects unauthenticated when the env is absent.
2026-09-13 15:34:04 +00:00
hermes c55a40bb21 fix(hermes_squid): drop shell default syntax from HERMES_PROXY_TOKEN
brencher parses ${VAR} via re.sub on the literal token name. ${HERMES_PROXY_TOKEN:-}
collapses to the token 'HERMES_PROXY_TOKEN:-' which is not in the env dict, raising
KeyError at deploy step. Plain ${HERMES_PROXY_TOKEN} resolves to empty string when
the env is unset, which is what the shell default was protecting against.
2026-09-13 15:23:09 +00:00
hermes 0054d9c21b feat(hermes_squid): add hermes-proxy service and voice-gateway to hermes_infra
Two changes to the hermes_infra stack:

1. New 'hermes-proxy' service: OpenAI-compatible HTTP egress on :8645,
   sharing the same OAuth credentials as the gateway (shared volume
   hermes_gateway_data). Reachable only via the hermes_proxy overlay
   (internal: true). Image nousresearch/hermes-agent:v2026.8.3 with
   command 'proxy run --host 0.0.0.0 --port 8645'.

2. New 'voice-gateway' service: Python aiohttp WS bridge between browser
   and hermes-proxy. Placement node.hostname==rudolf-T (x86_64 worker,
   14.5 GiB RAM). Image is built externally by Gitea Actions in
   Org1/hermes-voice-gateway (workflow release.yml on tag push) and
   pulled from gitea.rudolf.keenetic.link/hermes/hermes-voice-gateway.

   Piper voice model (ru_RU-denis-medium.onnx + .json) is downloaded
   on first start via the container's entrypoint.sh from HuggingFace.
   No pre-baked volume needed.

Image tags in registry: v0.1.1, v0.2.0. Bump via git tag + push in
Org1/hermes-voice-gateway, then update compose.yaml image tag here.
2026-09-13 14:53:30 +00:00
hermes b527454773 feat(hermes_squid): add hermes-proxy service for OpenAI-compatible HTTP egress
Routes /v1/chat/completions to the same OAuth backend the gateway uses,
via a shared hermes_gateway_data volume. Bound to 127.0.0.1 inside the
container; reachable only via the hermes_proxy overlay (internal: true).
Defaults to aiohttp on :8645 (hermes_cli/proxy/server.py DEFAULT_PORT).

Targets rudolf-T consumers (voice-gateway, Org1/hermes-voice-gateway#3)
that need an OpenAI-shaped transport to the agent without going through
the gateway's messaging adapters.
2026-09-12 21:15:10 +00:00