2fauth
OfficialDocker app from A75G's Repository
Overview
A web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Before running container Unraid CLI
mkdir /mnt/user/appdata/2fauth
chown 1000:1000 /mnt/user/appdata/2fauth
Register first username for admin user
More info in https://github.com/Bubka/2FAuth/blob/master/docker/docker-compose.yml and advanced
Requirements
Read Overview
Runtime arguments
- Web UI
http://[IP]:[PORT:8000]/- Network
bridge- Shell
sh- Privileged
- false
Template configuration
PortPorttcp
- Target
- 8000
- Value
- 8805
Appdata PathPathrw
- Target
- /2fauth
- Value
- /mnt/user/appdata/2fauth/
APP_NAMEVariable
You can change the name of the app
- Value
- 2FAuth
SITE_OWNERVariable
This should be your email address
- Value
- mail@example.com
APP_KEYVariable
The encryption key for our database and sessions. Keep this very secure.
- Value
- SomeRandomStringOf32CharsExactly
APP_URLVariable
This variable must match your installation's external address.
- Value
- http://Unraid_IP:8805
APP_ENVVariable
- Value
- local
APP_DEBUGVariable
- Default
- false|true
- Value
- false
LOG_CHANNELVariable
- Value
- daily
LOG_LEVELVariable
- Default
- info|debug|notice|warning|error|critical|alert|emergency
- Value
- info
DB_DATABASEVariable
Database config (can only be sqlite)
- Value
- /srv/database/database.sqlite
CACHE_DRIVERVariable
- Value
- file
SESSION_DRIVERVariable
- Value
- file
MAIL_DRIVERVariable
- Value
- log
MAIL_HOSTVariable
- Value
- smtp.mailtrap.io
MAIL_PORTVariable
- Value
- 2525
MAIL_USERNAMEVariable
- Value
- null
MAIL_USERNAMEVariable
- Value
- null
MAIL_PASSWORDVariable
- Value
- null
MAIL_ENCRYPTIONVariable
- Value
- null
MAIL_FROM_NAMEVariable
- Value
- null
MAIL_FROM_ADDRESSVariable
- Value
- null
MAIL_VERIFY_SSL_PEERVariable
- Default
- true|false
- Value
- true
THROTTLE_APIVariable
Set to null to disable the API throttling.
- Value
- 60
LOGIN_THROTTLEVariable
This setting applies to both email/password and webauthn login attemps.
- Value
- 5
AUTHENTICATION_GUARDVariable
- Default
- web-guard|reverse-proxy-guard
- Value
- web-guard
AUTH_PROXY_HEADER_FOR_USERVariable
- Value
- null
AUTH_PROXY_HEADER_FOR_EMAILVariable
- Value
- null
PROXY_LOGOUT_URLVariable
- Value
- null
WEBAUTHN_NAMEVariable
- Value
- null
WEBAUTHN_IDVariable
- Value
- null
WEBAUTHN_ICONVariable
- Value
- null
WEBAUTHN_USER_VERIFICATIONVariable
- Default
- preferred|required|discouraged
- Value
- preferred
TRUSTED_PROXIESVariable
- Value
- *
PROXY_FOR_OUTGOING_REQUESTSVariable
- Value
- null
Categories
Download Statistics
1,837,950
Total Downloads
100,694
This Month
85,832
Avg / Month
Total Downloads Over Time
Loading chart...
Details
Repository
2fauth/2fauth:latestLast Updated2026-04-03
First Seen2022-01-23
Run 2fauth on Unraid.
2fauth is listed in Community Apps for Unraid OS. Explore Unraid to build a flexible home server, NAS, or homelab.