SmartPhoneLover Posted January 23, 2022 Share Posted January 23, 2022 (edited) This docker template was created based on an already available official docker image GitHub: https://github.com/Bubka/2FAuth DockerHub: https://hub.docker.com/r/2fauth/2fauth Documentation: https://docs.2fauth.app/ My Repository: https://github.com/SmartPhoneLover/unraid-docker-templates DESCRIPTION 2FAuth is a web based self-hosted alternative to One Time Passcode (OTP) generators like Google Authenticator, designed for both mobile and desktop. It aims to ease you perform your 2FA authentication steps whatever the device you handle, with a clean and suitable interface. Main features: • Manage your 2FA accounts and organize them using Groups • Scan and decode any QR code to add account in no time • Add custom account without QR code thanks to an advanced form • Edit accounts, even the imported ones • Generate TOTP and HOTP security codes How to restore my QR codes when re-installing the container? 1. Back up the DB file (database.sqlite) somewhere in your server, located under '/.../appdata/2fauth/', or you can back up the whole directory to simplify. 1. Re-create the container with all the requiered fields in the template (same configuration as it was in previous container). 3. Done! Live demo: https://demo.2fauth.app/ user: [email protected] pass: demo How to proceed when restoring the container? 0. Be sure to backup the DB file (database.sqlite) somewhere in your server, located under '/.../appdata/2fauth/', or you can back up the whole directory to simplify. 1. Load and fill-in all the requiered fields in the template (same configuration as it was in previous container), then create the container, as usual. Stop it now. 2. Navigate to where you could save the DB file (i.e.: using Krusader), and place it under '/.../appdata/2fauth' directory. Launch the container again. 3. Done! NOTES • Run the following cmd via Terminal (unRAID) before building the container: mkdir -m 777 /mnt/user/appdata/2fauth. • A default app key (APP_KEY) is already included in the template, but it's highly recommended to change it by your own. Then, copy and paste it into the template, and rebuild the container. Be sure to clean the config directory (appdata), so the DB is re-generated with new the key. • There are some other variables that the user can use on this template, if needed. Check the official doc to know more. • The container can be accessed via HTTP, but HTTPS will be required when adding new QR codes. VERSION 1.1 (2022-09-05) Edited September 5, 2022 by SmartPhoneLover Quote Link to comment
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.