Split the README into focused docs under docs/
The README had grown to 658 lines. It is now a short overview: what Überbringer is, a quick start, a table of the docs and the licence. Each topic it held has a document of its own: - docs/install.md: install.sh, what it leaves behind, and upgrading. - docs/docker.md: the image behind a reverse proxy, the env file, health checks, and the ntfy state volume and token file. - docs/configuration.md: loading, environment variables, a table of every key in every section, and what is logged. The list of log messages becomes a summary of what is logged and reported. - docs/security.md: the API secret, issuing tokens and their scopes, the header-file recipe that keeps tokens off command lines (moved from docs/api.md), the reverse proxy, image URLs, and what is never logged. - docs/ntfy.md: the ntfy subscriptions, securing the topics and the printer's token, with the token scripts unchanged. - docs/cli.md: the command line. - docs/development.md: running from source, the Go version, make targets, the gate, generated files, the layout, CI and releases. CLAUDE.md names the new docs: a config key is now documented in docs/configuration.md, and the layout and Go version in docs/development.md. docs/api.md, design.md and the job-store plan point to the docs that now hold what they referred to in the README. The release archives also carry the docs on running the daemon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
80a65f6083
commit
3d451eb0b7
14 files changed
+934
-678
No files matched your search
+66
@@ -0,0 +1,66 @@
|
||||
# Command line
|
||||
|
||||
```text
|
||||
uberbringer [--config config.toml] run the daemon (default command)
|
||||
uberbringer secret print a new random API secret
|
||||
uberbringer token [--subject s] [--ttl 720h] print a signed bearer token
|
||||
[--modules ntfy,notify] [--raw] ... limited to modules, or able to print raw ESC/POS
|
||||
uberbringer preview [file.json|-] show the lines a job would print
|
||||
uberbringer preview --module note [file|-] show the receipt a module builds
|
||||
uberbringer config get <key> print one setting, e.g. webserver.port
|
||||
uberbringer version print the version
|
||||
uberbringer licenses print the licenses of the third-party software
|
||||
```
|
||||
|
||||
Every command that reads the config takes `--config` (`-c`);
|
||||
[configuration.md](configuration.md#loading) gives its default and how to
|
||||
run without a file.
|
||||
|
||||
## The daemon
|
||||
|
||||
`uberbringer` with no command runs the daemon. It shuts down gracefully on
|
||||
SIGINT/SIGTERM: a receipt that is already printing is finished, and jobs
|
||||
still waiting are marked failed.
|
||||
|
||||
## secret
|
||||
|
||||
`secret` prints a new random secret for `api.secret`.
|
||||
|
||||
## token
|
||||
|
||||
`token` prints a bearer token signed with `api.secret`. `--subject` names
|
||||
the client (default `uberbringer`), and `--ttl` sets how long the token
|
||||
lasts; without it, the token never expires. Without the scope flags, a
|
||||
token may use every route but cannot print jobs with `raw` elements:
|
||||
|
||||
- `--raw` lets it print them.
|
||||
- `--modules ntfy,notify` limits it to those modules' print and preview
|
||||
routes, job status and the module list. The names must be modules the
|
||||
daemon has, and `--raw` cannot be added.
|
||||
|
||||
[security.md](security.md#issuing-tokens) says which token to give which
|
||||
client and how to keep it off command lines.
|
||||
|
||||
## preview
|
||||
|
||||
`preview` reads a job from the file, or from standard input with `-` or no
|
||||
argument, and lays it out for the printer in the config, as
|
||||
`/api/v1/preview` does. It prints nothing and fetches no images. On a
|
||||
terminal it shows bold, underlined and inverted text as such; warnings go
|
||||
to standard error. With `--module`, the input is that module's payload, as
|
||||
`/api/v1/print/:module` takes it, built at the time now. It reads the same
|
||||
config as the daemon, so `api.secret` and `printer.address` must be set even
|
||||
though neither is used.
|
||||
|
||||
## config get
|
||||
|
||||
`config get` prints a setting as the daemon would use it, from the file,
|
||||
`UBERBRINGER_*` variables and the defaults, and fails when the configuration
|
||||
does not load. Durations print as `15s`, lists comma-separated, and tables
|
||||
as sorted `name=value` entries. It never prints `api.secret`.
|
||||
|
||||
## version and licenses
|
||||
|
||||
`version` prints the version. `licenses` prints the license and notice
|
||||
texts of the third-party software in the binary, the same text as
|
||||
[THIRD-PARTY-LICENSES.md](../THIRD-PARTY-LICENSES.md).
|
||||
Reference in new issue
Block a user