Skip to content

First run

This page is for the operator who has just started Adiutor for the first time. It covers setting up the staff and the first Admin, protecting that account, recovering from a lost setup, and the checklist to go through before you share the address.

A fresh install has no accounts and no staff. Until you set it up, the site can’t be used: there’s nobody to sign in. Do this right after the first start.

  1. Open the address of your site. On a fresh install, it takes you to /setup, a page titled Set up Adiutor. (/auth leads there too.)
  2. Fill in Name shown to users: the name of your staff, such as “Adiutor”. Users see it instead of “Adiutor” on every page and in emails, wherever they see who’s helping them. You can change it later in Settings › General.
  3. Choose the Default language, for everyone who hasn’t chosen one. You can change it later too.
  4. Enter Your name, Email and Password. The password field’s hint shows the shortest length allowed.
  5. Press Set up Adiutor. You’re signed in, and Adiutor first asks you to protect the account (below).

Two things happen without a field. Your browser’s time zone becomes Adiutor’s default time zone and your own. And the address you entered counts as verified, since you run the installation.

Setup works once. When it’s done, or when any account exists, /setup shows the “not found” page, so nobody can use it to take over an installation.

For scripted installs, one command does the same. It takes the staff’s name, the Admin’s address and name, and optionally the default language and a time zone. Without them, the language is English (US) and the time zone UTC.

With Docker Compose, from the folder with your compose.yaml:

Terminal window
docker compose run --rm app pnpm setup:platform --staff-name "Adiutor" --email [email protected] --name "Alex Admin"

Or with docker run, giving the same .env file the server uses:

Terminal window
docker run --rm --env-file .env bastolen/adiutor:0.5.0 pnpm setup:platform --staff-name "Adiutor" --email [email protected] --name "Alex Admin"

Add --default-language nl-NL to choose another default language, and --time-zone Europe/Amsterdam to set the time zone. The language must be one of the languages Adiutor has, written as its code (en-US, nl-NL, es-ES); the time zone must be a real one, or UTC. The command tells you what it did and refuses once Adiutor is set up.

An account the command creates has no password. Sign in at /auth with an email link, or choose Forgot password? on the sign-in page to set one. Both arrive by email, and Settings can’t be reached before anyone signs in, so set the mail server in the environment (SMTP_URL and EMAIL_FROM) before you use the command: see Email.

Staff Admins need two-step verification. After signing in for the first time, the Admin lands on the Security page with a notice that they must add a passkey or set up an authenticator app before they can use anything else. Do this at once: the account can do everything. Account security explains the choices.

Adiutor remembers that it’s set up in one setting. If that setting is ever lost, the browser page stays closed once accounts exist, because it would otherwise let a stranger claim an installation. The command line can recover it: run setup:platform with the address of an account that already exists and is active, and that account becomes the staff Admin again. The change is recorded in the audit log. The account’s password isn’t touched, and a deactivated account is refused.

Go through this list on any server people will reach. Each item links to the page that explains it.

  • Migrated. pnpm db:migrate ran on this release, and runs again before each new one starts. See Upgrading.

  • HTTPS everywhere. BETTER_AUTH_URL must start with https://. Cookies then get the Secure flag and the __Secure- prefix, and HSTS takes effect. With NODE_ENV=production, Adiutor and the commands that read its settings refuse to start with an http:// address, except on this computer (localhost, 127.0.0.1, [::1] or a .localhost name). See Reverse proxy.

  • The client’s address is read correctly, and you checked it: the rate limits, the audit log and the security emails depend on it. See Check after deploying.

  • A mail server is set. Without one, every email fails. Never set EMAIL_OUTBOX_DIR. See Email.

  • Files are stored, or off. Choose where attached files are kept and back them up with the database, or leave attachments off. See File storage.

  • The jobs tick. Start the tick every 5 minutes, and check that the dashboard shows no warning. See Background jobs.

  • The secrets are random and kept safe: BETTER_AUTH_SECRET of at least 32 characters, and CRON_SECRET if a cron service calls the jobs endpoint. See The secrets.

  • No test data. Never run pnpm db:seed on a server. See Never on a server.

  • The logs are treated as personal data: limited to the people who run the server, kept about 30 days, and mentioned in your privacy notice. See Logs are personal data.

  • Sign-in providers that prove two-step verification stay set while Admins rely on them. See GitHub’s two-step verification as MFA.

  • The database is ready for the load. Each Adiutor process keeps up to 10 connections, gives up connecting after 10 seconds (also when all 10 are busy that long), and has the operating system check a connection that goes silent, so a database that stops answering fails requests instead of holding them. Adiutor sets no time limit on statements itself, because a pooled connection (PgBouncer, such as Neon’s pooled address) refuses one set at connection time. If you want one, set it on the role the app connects with, and migrate with a role that has none, since a migration can take longer:

    ALTER ROLE adiutor SET statement_timeout = '30s';
    ALTER ROLE adiutor SET idle_in_transaction_session_timeout = '30s';

Adiutor runs at https://adiutor.dev. Its operator starts it, opens the address and fills in the setup page: the name is “Adiutor”, the language English (US), and the Admin Alex Admin with [email protected]. Alex lands on the Security page and adds a passkey. They then go through the checklist: the mail server in Settings › Integrations, a folder for files, the tick every 5 minutes. Only then do they invite Morgan Manager to the staff and add the first company, Adiutor Alpha.

  • /setup needs no sign-in, so doing the setup comes before every other item on the checklist.
  • The setup command is safe to try again if it failed before it finished: it refuses only once Adiutor is set up.
  • Settings saved later never count as setting up. Only the setup does.

Adiutor's code is released under the MIT License. The Adiutor name and logo aren’t covered by it; see the notice.

Set in Inter and JetBrains Mono, under the SIL Open Font License (Inter, JetBrains Mono).