feat(server): resolve external_base_url from VERVAIN_BASE_URL env var (VS-55) #78
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VS-55-vervain-base-url-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
read_external_base_url now consults a new VERVAIN_BASE_URL env var as a fallback after the config keys, so a config-less deployment mints agent-facing URLs against the public API host instead of falling back to wss://localhost. Precedence stays settings.cert > settings.external_base_url > VERVAIN_BASE_URL > None, so an explicit config.json still wins. The env value is a full URL with scheme; any trailing slash is trimmed defensively. Threaded the env lookup as an injectable closure (mirrors parse_setup_overrides) so the precedence chain is unit-tested. Documented the var in .env.example and the README settings table.
#VS-55