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>
1.8 KiB
1.8 KiB
Installing with install.sh
install.sh sets up a fresh Debian or Ubuntu host: the latest release, a
systemd service, and Caddy in front of it for
HTTPS with an automatic certificate. It does not upgrade a host set up by
the 0.1 script. For the Docker image, see docker.md; to run
from source, see development.md.
sudo ./install.sh printer.example.com you@example.com 192.168.1.245
The arguments are:
- The server's domain. Its DNS must point at the server, with ports 80 and 443 free and reachable.
- The email address for the certificate account.
- The printer's IP address or host name, without a port.
To install a given release, v0.2.0 or later:
sudo UBERBRINGER_VERSION=v0.2.0 ./install.sh <domain> <acme-email> <printer-address>
After installing
- The config is
/etc/uberbringer/config.toml. configuration.md describes every setting. - The first API token is in
/etc/uberbringer/initial-token: copy it to your client, then delete the file. security.md shows how to issue more. - The service may write only to
/var/lib/uberbringer, where the ntfy subscriptions keep their state. A config the script creates setsntfy.state_dirto it; add that line to an older config before adding a subscription. - Change the systemd unit with
systemctl edit uberbringer. - The install log is
/var/log/uberbringer-install.log.
Upgrading and changing the config
Re-running the script upgrades the install and keeps the config. After
editing the config, run systemctl restart uberbringer. After changing
webserver.body_limit, bind_ip or port, re-run the script instead: it
copies them into Caddy's config.