README: --check, the /status aliases, the repository URL

--check loads the file through the same parser and prints the summary without
binding a port (src/junction.c:5066-5091); /status is also /v1/status, /queue
and /v1/queue (src/junction.c:4063-4065).
This commit is contained in:
Hermes committed 2026-11-19 10:08:50 +00:00
1 parent 11edb7b798
commit b7fde6099e
1 file changed
+9
+9
View File
@@ -8,6 +8,8 @@ layered on later without touching logic.
`junction` sits in front of N model servers and decides **per request** which one
serves it — and what to do when none of them wants to.
Code: https://git.kropa.tech/hiddenbox/junction
## What it does
- **Ordered rules, like a firewall.** `req ... pass ...` / `block`, first match wins.
@@ -83,9 +85,16 @@ sudo make install # /usr/local/bin + /usr/local/share/junction
# systemd unit: packaging/junction.service — RuntimeDirectory=junction belongs in it,
# otherwise the unix control socket cannot be created after a reboot (/run is tmpfs).
./junction --config junction.conf [--port 8090]
./junction --config junction.conf --check # parse and report, bind nothing
curl -s localhost:8090/status
```
`--check` loads the file through the same parser and prints one line
(`config ok: N endpoints, N rules, N vkeys, listen host:port`), without binding a
port: "run it through the parser once before the restart" is a command, not a
thing to remember. `/status` is also served as `/v1/status`, `/queue` and
`/v1/queue`.
## Configuration — pf.conf style
Keyword, arguments, braces. `#` starts a comment at the beginning of a word;