MirrorNest
← Tous les 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.

Système : Any Docker hostSecurityAuthenticationSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de Authelia, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
  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.