MirrorNest
← All guides

Authelia

Authelia is a self-hosted authentication and authorization server that adds single sign-on and two-factor auth in front of a reverse proxy like Traefik or Nginx.

Target: Any Docker hostSecurityAuthenticationOfficial homepage ↗Official docs ↗
This guide is synthesized from Authelia's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
  1. 1Clone Authelia and check out the latest release

    git clone https://github.com/authelia/authelia.git
    cd authelia
    git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
  2. 2Run the local example bundle

    The 'local' Compose bundle (Authelia + Traefik) is meant for trying Authelia out without configuring your own domain/certs first.

    cd examples/compose/local
    ./setup.sh

    setup.sh edits /etc/hosts with sudo to map the example domains locally.

  3. 3Log in

    Visit https://public.example.com (no auth), https://traefik.example.com (1FA), and https://secure.example.com (2FA) — accept the self-signed cert and register a 2FA device.