mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
1.7 KiB
1.7 KiB
layout | title | parent | grand_parent | nav_order |
---|---|---|---|---|
default | MySQL | Storage Backends | Configuration | 2 |
MySQL
The MySQL storage provider.
Configuration
storage:
mysql:
host: 127.0.0.1
port: 3306
database: authelia
username: authelia
password: mypassword
Options
host
type: string
{: .label .label-config .label-purple }
default: localhost
{: .label .label-config .label-blue }
required: no
{: .label .label-config .label-green }
The database server host.
If utilising an IPv6 literal address it must be enclosed by square brackets and quoted:
host: "[fd00:1111:2222:3333::1]"
port
type: integer
{: .label .label-config .label-purple }
default: 3306
{: .label .label-config .label-blue }
required: no
{: .label .label-config .label-green }
The port the database server is listening on.
database
type: string
{: .label .label-config .label-purple }
required: yes
{: .label .label-config .label-red }
The database name on the database server that the assigned user has access to for the purpose of Authelia.
username
type: string
{: .label .label-config .label-purple }
required: yes
{: .label .label-config .label-red }
The username paired with the password used to connect to the database.
password
type: string
{: .label .label-config .label-purple }
required: yes
{: .label .label-config .label-red }
The password paired with the username used to connect to the database. Can also be defined using a secret which is also the recommended way when running as a container.