Self Host Wizard Docs

Tasks (vikunja)

Tasks on a Self Host Wizard box: the vikunja piece, served at tasks.<apps domain>, oidc sign-in, memory limit 168 MB.

At a glance

FieldValue
Addresshttps://tasks.<apps domain>
Sign-inoidc: OpenID Connect through Authelia: the office sign-in carries over
Memory limit168 MB (ram_mb: measured peak × 1.3)
Databasenone shared: it keeps its own data in THX_DATA
Needslldap, authelia
Needed bynothing
Containersvikunja
Image: vikunjavikunja/vikunja:2.8.0@sha256:35d937baf3b5d5803bed6b9e11d007448b7b536df9e4346dc35551e1072636c3
Image: vikunja-initalpine:3.22.2@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412 (one-shot set-up step)
Licence (from the README)AGPL-3.0
Upstream (from the README)https://vikunja.io

Turn it on

thx enable adds vikunja 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 vikunja
sudo thx apply

Engineering notes (pieces/vikunja/README.md)

Vikunja 2.8.0, AGPL-3.0. Lists, kanban, Gantt, table views, CalDAV for tasks. One Go binary serves the API and the web UI. Image vikunja/vikunja:2.8.0, pinned by index digest sha256:35d937ba…36c3; the index has linux/arm64 (docker buildx imagetools inspect, 2026-11-24). We ship only compose + config and pull the upstream image unmodified.

How it is wired

  • Storage: SQLite at THX_DATA/db/vikunja.db, attachments in THX_DATA/files. No database server. Vikunja runs as uid 1000 and THX_DATA is created by root, so a one-shot vikunja-init (alpine, pinned) creates and chowns those two directories before Vikunja starts, then exits (no RAM after). Not data_owner: that chowns THX_DATA itself only, and db/ and files/ are separate bind mounts, which Docker would create root-owned.
  • Login: OIDC through Authelia only. Local accounts are off (auth.local.enabled=false), so registration and password login are refused. With local accounts off and one provider, Vikunja's own login page goes straight to it, so opening the app signs in with no click (an Authelia session) or through Authelia's form once (no session); no thx code involved (tested). Redirect URI: https://tasks.<apps_domain>/auth/openid/thx. Vikunja authenticates to the token endpoint with client_secret_basic (it picks basic whenever the provider advertises it).
  • Companies → teams: with groups in the scope, Vikunja 2.8 turns every name in the groups claim into a team (verified in pkg/modules/auth/openid/openid.go, v2.8.0) and syncs the person's membership at each login. Authelia 4.39 puts groups in userinfo, not the ID token, so forceuserinfo is on. A team is created when its first member logs in.
  • Mail: THX_SMTP_HOST:THX_SMTP_PORT, no auth, from THX_MAIL_FROM. TLS verification is off for this hop only: it never leaves the piece network, and the relay's certificate names mail.<domain>, not the service name.
  • Secrets: service_secret (signs Vikunja's session tokens; service.jwtsecret is deprecated in 2.8). OIDC client id/secret come from thx.

How far org separation got

  • Each org-<org> group becomes a Vikunja team org-<org> (SSO). Vikunja appends the provider name to OIDC team names; it cannot be turned off.
  • Every LLDAP group the person is in becomes a team (admins, team-<org>-<team> too). That is fine for team-*. Filtering to org-*/team-* only would need an Authelia claims policy; not done.
  • Projects are private to their creator until shared. A person shares a project with their company's team; then colleagues see it and other companies do not (tested). We do not auto-create a project per company: an empty project nobody asked for is clutter, and sharing is one click.

Test (./test.sh)

Throwaway LLDAP (alice + bob in org-acme, carol in org-globex), Authelia with the client the core lane is asked to generate from piece.toml, Caddy with its local CA (Vikunja trusts it through SSL_CERT_FILE, test-only), Mailpit as the relay. It checks: OIDC login as alice; the org-acme team from the groups claim; create a project + task and read the task back; share the project with the team; bob reads the task, carol gets 403; registration and password login refused; in headless Chrome (test/sso.py) bob (Authelia session) opens Vikunja and is inside with no click, carol (no session) signs in at Authelia once and lands inside; vikunja testmail arrives in Mailpit from THX_MAIL_FROM; the SQLite file is in THX_DATA.

RAM

Measured 2026-11-24/25 on the amd64 dev PC (the box is arm64; same Go binary, expect similar): peaks of 98, 98, 99, 104 and 106 MiB over five runs (the fifth 2026-11-25, conform lane), then 102, 97, 121 and 129 MiB with the Chrome sign-ins added (sso lane, 2026-11-25) (page cache excluded; all but the first two sampled from the cgroup every 0.25 s, those two by docker stats every 2 s); cgroup memory.peak up to 142 MiB including page cache. ram_mb = 168 = 129 × 1.3, rounded up; mem_limit: 168m. The test fails on any OOM kill under that limit. It is light (3 users, a handful of requests); re-measure on the box under real use.

Known gaps

  • Team names carry " (SSO)"; non-org groups also become teams (above).
  • CalDAV task sync needs a per-user CalDAV token (Vikunja settings → CalDAV); not tested here.
  • Removing someone from an org in LLDAP takes effect at their next Vikunja login (sync on login only).

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

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

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