Skip to content

Make server URL configurable in hook script #14

@Robdel12

Description

@Robdel12

Right now the server URL is hardcoded in the hook script (~/.orbitdock/hook.sh) to http://127.0.0.1:4200/api/hook. If the server binds to a different port or host, the hook silently fails and events just pile up in the spool directory.

The entire server URL should be configurable — ideally through an env var or a config file (like ~/.orbitdock/config.toml). That way if the server port changes, you don't have to remember to go update the hook script too.

Current behavior:

  • Server URL is hardcoded on line 40 of hook.sh
  • Changing the server's bind address means manually editing the hook script

Expected behavior:

  • Hook script reads the server URL from a config file or env var (e.g. ORBITDOCK_URL)
  • Falls back to a sensible default like http://127.0.0.1:4200/api/hook if nothing is set

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions