Password authentication uses the typical username and password to login a user. Password authentication also supports Signup, recaptcha, and Two-Factor Authentication features.

Basic Configuration

YAML
1
2
3
4
5
6
auth:
  methods:
    password:
      enabled: true
      minLength: 8
      signup: false

Options

OptionDefaultDescription
enabledtrueEnable password authentication
minLength5Minimum password length
signupfalseAllow user self-registration

With User Signup

YAML
1
2
3
4
5
6
auth:
  methods:
    password:
      enabled: true
      minLength: 12
      signup: true

With reCAPTCHA

YAML
1
2
3
4
5
6
7
8
auth:
  methods:
    password:
      enabled: true
      signup: true
      recaptcha:
        key: "your-site-key"
        secret: "your-secret"  # Use environment variable

Set Admin Password

If password authentication is enabled, by default filebrowser will create a default admin user. This admin user is uniquely able to have the password set by the config. This happens automatically on startup if you specify an admin password via environment variable or config file.

Best practice - use environment variable:

BASH
1
export FILEBROWSER_ADMIN_PASSWORD="secure-password"

Config based admin password

TEXT
1
2
3
auth:
  adminUsername: admin
  adminPassword: admin # if set it will get reset on startup.

Next Steps