Self-host Authelia
A lightweight, open-source authentication and authorization server providing 2FA and SSO via a forward-auth portal in front of your reverse proxy — a self-hosted gatekeeper for existing apps, not a full identity provider.
Key facts
Pick Authelia when you want to put SSO and two-factor in front of apps you already run — it's a lightweight forward-auth portal and 2FA gateway that pairs with your reverse proxy. It's tiny and focused; if you need to be a full OIDC provider for other software, reach for authentik, Keycloak, or Zitadel instead.
What you need
- Any VPS with at least 256 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- About an afternoon — budget time for troubleshooting
Install
Run these commands on your server:
# Authelia — official Lite compose bundle (test/eval config)
git clone https://github.com/authelia/authelia.git && cd authelia/examples/compose/lite
# edit users_database.yml + configuration.yml for your domain, then:
docker compose up -dWhat you take on
Authelia does one job well, so the caveats are mostly about what it deliberately is not: