SQLite3

If you don’t have a SQL server, you can use SQLite. However please note that this setup will prevent you from running multiple instances of Authelia since the database will be a local file.

Use of this storage provider leaves Authelia stateful. It’s important in highly available scenarios to use one of the other providers, and we highly recommend it in production environments, but this requires you setup an external database such as PostgreSQL.

Configuration

Example Configuration

This section is intended as an example configuration to help users with a rough contextual layout of this configuration section, it is not intended to explain the options. The configuration shown may not be a valid configuration, and you should see the options section below and the navigation links to properly understand each option individually.

configuration.yml
storage:
  encryption_key: 'a_very_important_secret'
  local:
    path: '/config/db.sqlite3'

Options

This section describes the individual configuration options.

encryption_key

See the encryption_key docs.

path

string required

The path where the SQLite3 database file will be stored. It will be created if the file does not exist.