2FAuth logo

2FAuth

A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes

Security Latest: 5.6.1

Setup Notes

Enable HTTPS

  • Create Application: Set the external address to https://2fauth.example.com (please replace the domain name according to your actual situation).
  • Create Reverse Proxy Site: Set the proxy address to http://127.0.0.1:8000 (please replace the IP and port according to your actual situation).
  • Apply for Certificate: Create a certificate for 2fauth.example.com, choose HTTP as the verification method.
  • Enable HTTPS: Go to the website settings page, click on HTTPS, select the certificate you just added and save.

Without HTTPS

  • If HTTPS is not enabled, it will cause issues such as inability to scan QR codes. In this case, the external address can be directly set to http://192.168.10.100:8000 without the need for reverse proxy settings.

Deploy 2FAuth with 1Panel

  1. Install 1Panel on your VPS (Linux server).

    # Copy and paste the following command into your terminal and press Enter
    bash -c "$(curl -sSL https://resource.1panel.pro/v2/quick_start.sh)"
  2. Open the 1Panel dashboard, go to App Store.

  3. Search for 2FAuth and click Install.

  4. Fill in the required parameters (ports, admin credentials, storage path), then confirm.

  5. After deployment, create a website/reverse proxy in 1Panel if you want a custom domain.

  6. Enable HTTPS (recommended) and keep the app updated from the App Store.