Files
hermeven/deploy/bridge.env.example
T
DanandClaude Fable 5.2 bc00ae9fb1 Allow loopback origins on any port when configured (http://127.0.0.1:*)
An app installed through Even Hub is served by the Even phone app from
http://127.0.0.1:<port>, and the port changed between two launches on a
real phone (40315, then another). An exact-origin allow-list therefore
cannot admit it. HERMEVEN_ALLOWED_ORIGINS now accepts one wildcard form,
the port of a loopback address over http (127.0.0.1, localhost, [::1]),
off unless configured. No other wildcard is accepted. CORS remains
advisory: every route still requires the device credential.

Tests: 224 unit/integration. Not reviewed, not deployed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 13:31:40 -08:00

22 lines
1012 B
Bash

# /etc/hermeven/bridge.env on the droplet (chmod 600, owned by the hermeven user).
HERMES_BASE_URL=http://127.0.0.1:8642
HERMES_API_KEY=replace-with-the-hermes-api-server-key
HERMES_PROFILE_LABEL=default
HERMEVEN_HOST=127.0.0.1
HERMEVEN_PORT=8787
# Caddy is in front, so the client address comes from its forwarded header.
HERMEVEN_TRUST_PROXY=true
HERMEVEN_DB_PATH=/var/lib/hermeven/hermeven.sqlite
# An app installed through Even Hub is served from http://127.0.0.1:<port>, with a new port on
# every launch, so it needs the loopback any-port entry below. Remove it if you only ever load
# the page from this bridge's own hostname (QR sideload), which needs no entry.
HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:*
# Built-in speech-to-text (the default). The model is pinned and verified; the running service
# never downloads it and only reads this directory. Populate it at deploy time with
# npm run bridge:cli -- fetch-model
STT_PROVIDER=builtin
STT_MODEL=whisper-base
STT_MODEL_DIR=/opt/hermeven/models