Skip to content

Add --host and CORS config for hermes dashboard to enable Tailscale/VPN access #10567

@PheriwinkleOC

Description

@PheriwinkleOC

Feature Description

Currently, the hermes dashboard command binds to 127.0.0.1:9119 by default and the CORS allow_origin_regex in hermes_cli/web_server.py is hardcoded to r"^https?://(localhost|127\.0\.0\.1)(:\d+)?$".

This prevents users from accessing the web UI dashboard remotely over a secure VPN like Tailscale, even if they pass the --host 0.0.0.0 flag (the Vite/React frontend loads, but all API calls to the FastAPI backend fail the CORS check).

Proposed Solution

  1. Add a config-oriented way (in config.yaml or via an env var like HERMES_DASHBOARD_HOST / HERMES_DASHBOARD_CORS_ORIGINS) to override the hardcoded localhost CORS regex.
  2. Allow configuring the default bind host/port in config.yaml under a dashboard: section so it survives upgrades without needing to constantly pass CLI flags.

Reference commit: 247929b (recent dashboard additions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/configConfig system, migrations, profilescomp/cliCLI entry point, hermes_cli/, setup wizardtype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions