selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

authelia logo

Self-host authelia

v4.39.28

MFA SSO portal and OpenID Connect provider for your apps

ReleaseOpen SourceApache-2.0
Updatedlast month
LanguageGo
Setup difficultyModerate
Stars
29 659
Port
9091 (Main HTTP server listener, default address tcp://:9091/)
Docker
docker.io/authelia/authelia
Install with Docker
Authelia login portal in the light themeAuthelia login portal in the dark themeSecond-factor method selection screen of the portal

What is authelia?

authelia alternatives

Should you self-host authelia?

authelia scores 81/100 on selfhost.directory (how scoring works) and ranks #1 of 3 in IAM. It has 29 659 GitHub stars, +421 in the last 30 days.

It shipped 18 stable releases in the past year. The latest, v4.39.28, came out on 17 September 2026.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is authentik (80/100, 26 356 stars). authelia scores higher overall. See authelia vs authentik side by side.

Features

  • Basic authentication for one-factor endpoints
  • Brute-force login regulation
  • Email password reset
  • Fine-grained access control rules
  • Highly available deployment
  • Identity validation by email
  • LDAP or file user database for first factor
  • Mobile push notification 2FARequires a Duo account; configured under second factor.
  • Multi-factor authentication portal
  • OpenID Connect 1.0 / OAuth 2.0 provider
  • Passkeys (passwordless login)
  • Post-Quantum Cryptography readiness
  • Single sign-on via reverse proxy
  • Time-based One-Time Passwords
  • WebAuthn security keys

authelia README

Build Codecov OpenSSF Best Practices OpenSSF Scorecard

How to install authelia

Install authelia with Docker

The docs give a standalone compose example with docker secrets:

---
secrets:
  JWT_SECRET:
    file: '${PWD}/data/authelia/secrets/JWT_SECRET'
  SESSION_SECRET:
    file: '${PWD}/data/authelia/secrets/SESSION_SECRET'
  STORAGE_PASSWORD:
    file: '${PWD}/data/authelia/secrets/STORAGE_PASSWORD'
  STORAGE_ENCRYPTION_KEY:
    file: '${PWD}/data/authelia/secrets/STORAGE_ENCRYPTION_KEY'
services:
  authelia:
    container_name: 'authelia'
    image: 'docker.io/authelia/authelia:latest'
    restart: 'unless-stopped'
    networks:
      net:
        aliases: []
    secrets: ['JWT_SECRET', 'SESSION_SECRET', 'STORAGE_PASSWORD', 'STORAGE_ENCRYPTION_KEY']
    environment:
      AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET_FILE: '/run/secrets/JWT_SECRET'
      AUTHELIA_SESSION_SECRET_FILE: '/run/secrets/SESSION_SECRET'
      AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE: '/run/secrets/STORAGE_PASSWORD'
      AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: '/run/secrets/STORAGE_ENCRYPTION_KEY'
    volumes:
      - '${PWD}/data/authelia/config:/config'
networks:
  net:
    external: true
    name: 'net'

Two compose bundles are also published: lite (internet-facing, file users plus SQLite) and local (test setup with self-signed certificates).

How to configure authelia

  • AUTHELIA_SESSION_SECRET_FILEPath to the file holding the session secret (docker secrets example uses /run/secrets/SESSION_SECRET).
  • AUTHELIA_STORAGE_ENCRYPTION_KEY_FILEPath to the file holding the storage encryption key.
  • AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILEPath to the file holding the PostgreSQL storage password.
  • PUID0If the container is running as UID 0, it will drop privileges to this UID via the entrypoint
  • PGID0If the container is running as UID 0, it will drop privileges to this GID via the entrypoint

authelia releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…