Skip to content

First run

An instance with zero users cannot be administered, so it exposes exactly one unauthenticated action: creating the first administrator.

Open BASE_URL. The root route checks two things in order:

  1. Does this instance have any users? If not, redirect to /setup.
  2. Is there an administrator session? If so, redirect to /admin.
  3. Otherwise, redirect to /sign-in (when the preview screens are enabled).

/setup asks for a name, email and password (8 characters minimum). Submitting it:

  • creates the account through the normal sign-up path,
  • grants it the role listed in plugins.admin.adminRoles (default admin),
  • signs the browser in,
  • records instance.setup in the audit trail.

Then it closes permanently. Afterwards GET /api/setup returns {"needsSetup":false}, POST returns 409, and /setup returns 404. There is no way to reopen it without deleting every user.

The alternative: an administrator from the environment

Section titled “The alternative: an administrator from the environment”

If you would rather not touch a browser during provisioning:

docker/.env
BOOTSTRAP_ADMIN_EMAIL[email protected]
BOOTSTRAP_ADMIN_PASSWORD=a-long-password-you-chose

The account is created at boot and promoted to the admin role. If you omit the password, one is generated and printed once to the container log — which means the credential lives in your logs, so set it explicitly in production.

/admin. A session without the admin role gets a 404, not a redirect: the console does not advertise itself to people who cannot use it.

The first thing worth doing there is Settings → Configuration, which tells you what the running process actually resolved — and which parts of the deployment are not production-ready yet.