2020-02-29 00:43:59 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: SQLite
|
|
|
|
parent: Storage backends
|
|
|
|
grand_parent: Configuration
|
2020-03-04 23:25:52 +00:00
|
|
|
nav_order: 4
|
2020-02-29 00:43:59 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# SQLite
|
|
|
|
|
|
|
|
If you don't have a SQL server, you can use [SQLite](https://en.wikipedia.org/wiki/SQLite).
|
|
|
|
However please note that this setup will prevent you from running multiple
|
|
|
|
instances of Authelia since the database will be a local file.
|
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
Use of this storage provider leaves Authelia [stateful](../features/statelessness.md). 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.
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
## Configuration
|
2020-02-29 00:43:59 +00:00
|
|
|
|
|
|
|
```yaml
|
|
|
|
storage:
|
2020-04-11 04:46:07 +00:00
|
|
|
local:
|
2020-06-17 06:25:35 +00:00
|
|
|
path: /config/db.sqlite3
|
2020-02-29 00:43:59 +00:00
|
|
|
```
|
2021-04-11 11:25:03 +00:00
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
### path
|
|
|
|
<div markdown="1">
|
|
|
|
type: string
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: yes
|
|
|
|
{: .label .label-config .label-red }
|
|
|
|
</div>
|
|
|
|
|
|
|
|
The path where the SQLite3 database file will be stored. It will be created if the file does not exist.
|