Self Host Wizard Docs

Single sign-on (authelia)

Single sign-on on a Self Host Wizard box: the authelia piece, served at auth.<apps domain>, none sign-in, memory limit 80 MB.

At a glance

FieldValue
Addresshttps://auth.<apps domain>
Sign-innone: no office sign-in in front of it
Memory limit80 MB (ram_mb: measured peak × 1.3)
Databasenone shared: it keeps its own data in THX_DATA
Needslldap
Needed byboards, bookstack, drive, easyappointments, espocrm, forgejo, freescout, glitchtip, home, listmonk, radicale, snappymail, umami, uptime-kuma, vaultwarden, vikunja
Containersauthelia
Image: autheliaauthelia/authelia:4.39.28@sha256:bd97cff4fcbf715b5ff1f9ae286afbe6033afce385302520b0368122d43a6f54
Licence (from the README)Apache-2.0
Upstream (from the README)https://www.authelia.com

Turn it on

thx enable adds authelia and everything it needs to the box's state; thx apply then installs it. Apps are applied only once site_domain is set.

sudo thx enable authelia
sudo thx apply

Engineering notes (pieces/authelia/README.md)

Authelia 4.39.28, Apache-2.0. Image authelia/authelia:4.39.28, pinned by index digest sha256:bd97cff4…a6f54; the index has linux/arm64 (docker buildx imagetools inspect, 2026-11-24). Upstream image, unmodified.

How it is wired

  • Users from LLDAP (implementation: lldap, bound as thx-readonly). Password change/reset are disabled here: that is LLDAP's web UI. SQLite storage and the session in THX_DATA / memory; one session cookie for the whole apps domain.
  • Two config files: files/configuration.yml (shipped, the same everywhere) and files/generated.yml (written by thx apply from the enabled pieces):

    • access_control: one_factor for every forward-auth host; default deny.
    • identity_providers.oidc: one client per auth = "oidc" piece, its secret stored as a pbkdf2-sha512 digest (the plain secret is only in that piece's own .env), redirect URIs and scopes from its piece.toml, token_endpoint_auth_method per piece. The RSA key that signs ID tokens is oidc_jwks_key.pem, generated on the box.
    • notifier: SMTP to the mail piece when it is enabled, otherwise the filesystem notifier.
  • Caddy puts forward_auth to authelia:9091/api/authz/forward-auth in front of every auth = "forward" piece and passes only Remote-User, Remote-Groups, Remote-Email, Remote-Name (a client-sent copy is overwritten; tested).

Measured

RAM: measured peak 61 MiB (anon + shmem + kernel from memory.stat, sampled through the whole check.sh docker stage including a 10-client database load; 124 MiB with page cache) × 1.3 = ram_mb 80, mem_limit 80m. Measured 2026-11-25, e2e run 6.

Known gaps

  • Tested on the dev PC: forward auth, first-factor login (right and wrong password), the OIDC code flow with userinfo + ID token claims and a wrong client secret refused. NOT tested: the branch with no forward hosts at all (default_policy: one_factor there), mail notifications through Stalwart, 2FA enrolment.
  • Changing the client list recreates the container (a few seconds of no login).

Facts on this page come from these files in the selfhostwizard repository:

  • pieces/authelia/piece.toml
  • pieces/authelia/compose.yaml
  • pieces/authelia/README.md
  • internal/piece/piece.go

This page is generated from the code at build time, so it changes when the code does.