Skip to content

Commit 8639534

Browse files
committed
feat(config): add config reload functionality and update server address field
This commit introduces a new module for configuration reloading and updates the server configuration field from `bind-process` to `address`. This change enhances the flexibility of the server configuration and allows for dynamic updates without requiring a restart. BREAKING CHANGE: The configuration field `bind-process` has been renamed to `address` and requires updates in existing configuration files.
1 parent 154e849 commit 8639534

17 files changed

Lines changed: 1635 additions & 177 deletions

File tree

Cargo.lock

Lines changed: 121 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ edition = "2024"
66
[dependencies]
77
axum = { version = "0.8.8", features = ["json", "macros"] }
88
crossterm = "0.29.0"
9+
notify = "8.2.0"
910
ratatui = { version = "0.30.0", default-features = false, features = ["crossterm"] }
1011
rmcp = { version = "1.2.0", features = ["server", "macros", "transport-streamable-http-server", "elicitation"] }
1112
russh = { version = "0.56.0", default-features = false, features = ["ring"] }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Key sections in `host-bridge.yaml`:
179179

180180
Highlights:
181181

182-
- `server.bind-process`: HTTP bind address
182+
- `server.address`: HTTP bind address (requires restart if changed at runtime)
183183
- `server.access.api-key-env`: optional environment-variable-backed API key for fixed `Authorization: Bearer <key>`
184184
request authentication
185185
- `logging.memory-buffer-lines`: hot in-memory log window for the TUI

host-bridge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# HOST_BRIDGE_CONFIG=/path/to/host-bridge.yaml
55

66
server:
7-
bind-process: 127.0.0.1:8787
7+
address: 127.0.0.1:8787
88
access:
99
# Set api-key-env to require:
1010
# Authorization: Bearer <value from HOST_BRIDGE_API_KEY>

0 commit comments

Comments
 (0)