2FAuth

Two-Factor Auth

Open Source

Self-hosted two-factor authentication app for storing and generating TOTP codes.

2FAuth is a self-hosted web app for storing and generating two-factor authentication codes (TOTP/HOTP), used instead of a phone-only authenticator app like Google Authenticator or Authy specifically to keep 2FA codes on personal infrastructure and on open-source software. It runs as one of the 15+ containers on the homelab’s Docker host. Every account with 2FA enabled depends on this interface being reachable to log in.

Like most of the smaller self-hosted apps here, it’s deployed and updated through the Docker host’s Compose stack rather than a dedicated Ansible role. There’s nothing host-specific to automate beyond the initial service entry, so the generic docker_compositor and docker_data_backup roles cover its deployment and backup needs.