← 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.
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.
1Clone Authelia and check out the latest release
git clone https://github.com/authelia/authelia.gitcd autheliagit checkout $(git describe --tags `git rev-list --tags --max-count=1`)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.shsetup.sh edits /etc/hosts with sudo to map the example domains locally.
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.