Files
uberbringer/docs/install.md
T
57_WolveandClaude Opus 5.5 66531e7314
Security / Vulnerability check (push) Successful in 45s
Test / Lint and test (push) Successful in 2m1s
Replace ntfy.state_dir with a top-level [state] dir
The job store is to keep its database in the directory that holds the
ntfy subscriptions' state files, so the directory moves to a section
of its own: [state] dir, or UBERBRINGER_STATE_DIR, in place of
[ntfy] state_dir. For now only the subscriptions use it. It still has
no default and is still required with a subscription, and the checks
at start name state.dir in their errors.

install.sh writes [state] dir into new configs, and the Docker image
sets UBERBRINGER_STATE_DIR. ntfy.state_dir has never been in a
release, so its CHANGELOG entry changes in place and there is no
fallback: a config that still sets it fails to load with an unknown
key until the line moves to [state].

The image itself was not built, since the workstation has no Docker.

Part of stage 1b of docs/plans/job-store.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:21:29 -06:00

46 lines
1.8 KiB
Markdown

# Installing with install.sh
`install.sh` sets up a fresh Debian or Ubuntu host: the latest release, a
systemd service, and [Caddy](https://caddyserver.com) 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](docker.md); to run
from source, see [development.md](development.md#running-from-source).
```sh
sudo ./install.sh printer.example.com you@example.com 192.168.1.245
```
The arguments are:
1. The server's domain. Its DNS must point at the server, with ports 80 and
443 free and reachable.
2. The email address for the certificate account.
3. The printer's IP address or host name, without a port.
To install a given release, v0.2.0 or later:
```sh
sudo UBERBRINGER_VERSION=v0.2.0 ./install.sh <domain> <acme-email> <printer-address>
```
## After installing
- The config is `/etc/uberbringer/config.toml`.
[configuration.md](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](security.md#issuing-tokens)
shows how to issue more.
- The service may write only to `/var/lib/uberbringer`, where the
[ntfy subscriptions](ntfy.md) keep their state. A config the script
creates sets [`state.dir`](configuration.md#state) to it; add that
setting 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.