diff --git a/README.md b/README.md index 475d21b..cdbfd18 100644 --- a/README.md +++ b/README.md @@ -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;