Run the server¶
Install Nik for a team, keep it safe and backed up, bring it back after a failure, and upgrade it.
You need
A shell on the host that runs Nik, and an account with the Admin role for the screens under Platform settings › System.
-
Docker or Podman, rootless, behind a proxy, your own TLS certificate, start on boot. The services and their ports.
-
The
.envfile, what to set before the first start, and the system settings an administrator changes in the app. -
The secrets as files, the store key, changing a key with
deploy/secrets.sh, and what to keep off the server. -
The backups Nik takes and tests by itself, the copy to a second host, restoring, and the export of content.
-
Go back to any moment, keep a standby host, promote it when the first host dies. What is lost and how long it takes.
-
How an upgrade runs (snapshot, rehearsal, migrations), how to roll back, and what each release asks of you.
-
The Health page, workers, storage, Prometheus metrics, the audit log chain, syslog forwarding, and Stop all.
-
A manual install on RHEL 8 or 9 with PostgreSQL, systemd and nginx.
The short version¶
git clone https://github.com/n36l3c7/Nik.git && cd Nik
deploy/init-env.sh # .env and the secrets, each in a file of ./secrets
docker compose up -d --build # or: podman compose up -d --build
Then, in this order:
- Open
https://<host>:8443and create the first account at once: it becomes the admin. See First sign-in. - Copy the
./secretsdirectory somewhere off the server (Keys and secrets). - Set a backup passphrase and a second host in Platform settings › System › Backup (Backups).
- Turn on Administrators must have a second factor and send the audit log to syslog (Hardening checklist).
Related¶
- Get started: Install — a first try on one machine
- Environment variables — every variable, with its default
- Security — the threat model and the hardening checklist
- Architecture — what runs where