mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-27 02:39:38 +02:00
refactor(config,cli,server): rename the server: config block to serve:
Introduces the `serve:` host-role block in its RFC-002 shape — `graphs:` is a served-set list, replacing the single `server.graph` scalar. The legacy `server:` block is folded into `serve:` under the legacy schema and rejected under `version: 1` (pointing at the new spelling, noting the scalar->list change). Serving a true subset (`serve.graphs` with more than one entry) is rejected with a route-unification hint; one entry (single-graph) and none (serve all) preserve today's behavior. Renames the accessors (server_* -> serve_*) and repoints the server boot call sites; migrates the init scaffold to `serve:`. `servers:` (the remote endpoint map) is deliberately unaffected — the key scan is exact-match.
This commit is contained in:
parent
56ff5eb9ec
commit
304ac5ec23
3 changed files with 138 additions and 19 deletions
|
|
@ -1579,8 +1579,9 @@ graphs:
|
|||
storage: {}
|
||||
# bearer_token_env: OMNIGRAPH_BEARER_TOKEN
|
||||
|
||||
server:
|
||||
graph: local
|
||||
serve:
|
||||
graphs:
|
||||
- local
|
||||
bind: 127.0.0.1:8080
|
||||
|
||||
defaults:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue