Self-hosting
Setup wizard
The in-browser setup wizard after install: admin account, organisation and web address, services with health checks (email and sign-in settings in place; changing providers or moving off Supabase with the Infrastructure add-on), SSO with Entra ID / AD FS / OIDC / SAML, a test email, and invitations.
On this page
After you create your admin account, UserTasks opens the setup wizard. It walks you through the rest of the setup in plain steps. You can skip any step and come back later from Settings → Setup wizard (/settings/setup). Settings → Infrastructure has the same controls for services.
Who can open it#
- Step 1 (
/setup) works only before the first admin exists, and only with the setup code from the server log. - After that, only instance admins can open the wizard. Everyone else gets "not found". The account you create on
/setupbecomes an instance admin. Add more withusertasks-admin instance-admins add ops@example.com. - Every action checks this again on the server, not just the page. Actions are POST-only and refuse requests from other sites.
The steps#
| Step | What you do |
|---|---|
| 1. Admin account | The setup code, your organisation and your account (details) |
| 2. Your organisation | Its name, the sign-in name people type, and a contact. The wizard also checks the web address (below). |
| 3. Services | What each service runs on, with a check for each one (green, amber or red), and Change… / Settings to change it in place |
| 4. Sign-in and SSO | Add Microsoft Entra ID, AD FS, Okta, Keycloak, Google Workspace or any OpenID Connect or SAML provider. Check the connection, then try a test sign-in. |
| 5. Email | Choose how email is sent (Microsoft 365, your mail server, Resend, Azure Communication Services, Amazon SES) and send a test message |
| 6. Invite your team | Paste email addresses and pick a role |
| 7. Done | A health summary, what you skipped, and links to the next things to do |
Web address#
The wizard compares the address you opened with APP_URL. Links in emails (invitations, password resets) and SSO redirects use APP_URL, so it must be the address people really use. You'll see a warning when:
- you opened a different address from
APP_URL APP_URLuses plainhttp://on a network address, so passwords travel unencrypted. Put HTTPS in front of it.APP_URLislocalhost, which is fine on your own computer but not for other people
APP_URL is in the server's configuration file, because sign-in needs it before anything else loads. To change it, edit the file the installer wrote (or .env with Docker Compose), then restart UserTasks. See Give your install a friendly address.
Services#
Each service shows its current provider and a health check:
| Service | What it does |
|---|---|
| Database | Where all your data is stored |
| Sign-in | How people prove who they are |
| Files | Uploaded files, logos and attachments |
| Invitations, notifications and password resets | |
| Background jobs | Timers, reminders and scheduled workflows |
| Live updates | Pages update by themselves |
| Cache, secret store, key management | Speed, stored passwords and encryption keys |
- Change… picks another provider. Before anything is saved, it runs a connection test and shows you the plan.
- Settings edits the current provider, for example the mail server's address.
Both use the same engine as usertasks-admin switch, with the same checks, backups, switch log and rollback. Passwords and keys you type are stored encrypted and never shown again.
A service set in the server environment (for example EMAIL_PROVIDER in the configuration file) can't be changed from the page, because the environment wins. The wizard says so. Installers that use the install profile (usertasks-admin install profile, described in docs/install-profile.md in the source) with placement settings keep email, files, sign-in and background jobs changeable here.
Changing providers from the page can be turned off with INFRA_UI_SWITCHING=false. In the cloud edition it's locked until an instance admin unlocks it (usertasks-admin ui-switching on).
Moving off Supabase#
Staying on Supabase needs nothing more. Moving services off it is part of the Infrastructure add-on, a paid extension. Without the add-on, the Services step shows what it does and how to get it, and Change… on a card leads there. Email and sign-in settings stay free.
With the add-on, if any service runs on Supabase, its page (opened from the Services step) lists how to move each one off it, one at a time, in this order:
- Files to a local folder or S3-compatible storage. This copies every file and keeps the original.
- Live updates to built-in live updates. This is a settings change only.
- Sign-in to built-in sign-in. This copies every account with its password hash, so people keep their passwords.
- The database to your own PostgreSQL 15 or later. Do this last.
Every move takes a backup first, copies your data and keeps the original, and can be rolled back from the switch log or with usertasks-admin rollback <switch id>. Nothing is deleted in Supabase.
Where the page can run a move safely (a direct database connection and a long-running server), Change… on the service's card does it in the background and shows its progress. Otherwise the wizard shows the exact commands to run on the server. The first command only checks and shows the plan:
usertasks-admin switch database --to postgres --target-url 'postgres://usertasks:PASSWORD@db.example.com:5432/usertasks?sslmode=require' --dry-run
usertasks-admin switch database --to postgres --target-url 'postgres://usertasks:PASSWORD@db.example.com:5432/usertasks?sslmode=require'
usertasks-admin historySee Switching providers for the details.
Sign-in and SSO#
People can always sign in with an email and password. To let them use their work account as well:
- Choose the identity provider and fill in what the form asks for. For example, Entra ID needs the directory (tenant) id, the application (client) id and a client secret, and AD FS needs the federation metadata URL.
- Register the redirect address the form shows at your identity provider. For OpenID Connect that's
https://tasks.example.com/auth/sso/<id>/callback; for SAML it's the entity id and reply URL. - Check connection: UserTasks loads the provider's discovery document and signing keys (or its SAML metadata). Nothing is saved.
- Save identity provider: the provider appears on the sign-in page.
- Test sign-in: copy the test link into a private (incognito) window and sign in with a work account. Opening it in your own window would sign you in as that account.
Only these email domains limits who can sign in and is recommended for Entra ID, AD FS and SAML. New people join puts new accounts in your organisation with the role you pick.
This step needs built-in sign-in. On Supabase Auth, set up SSO in your Supabase project, or move sign-in off Supabase first.
Email and invitations#
Pick how email is sent, fill in the server details, and save. The password is write-only. Then send a test message to yourself. For Microsoft 365, use the mailbox's address as the user name. If the account uses multi-factor sign-in, use an app password, or allow SMTP AUTH for that mailbox.
Invitations use the email settings you just tested. Until email works, invitations are only written to the server log.
Test buttons and private addresses#
The Check connection, Test and Send test email buttons are rate-limited. Before they contact a server, they check it against the egress policy, so they can't be used to reach cloud metadata endpoints or your private network uninvited. When a test needs a server on your own network (an Exchange server, Keycloak on localhost, a mail relay), the wizard offers Allow <host>. This adds it to the private network allowlist, the same as running:
usertasks-admin egress allow-private mail.internalNext#
Sign in and invite people covers sign-in, roles and directory sync in more depth.