[mod] role:authelia:Unterstützung für PostgreSQL und MariaDB
This commit is contained in:
parent
473008c63a
commit
07a681b435
2 changed files with 34 additions and 2 deletions
|
@ -7,8 +7,19 @@
|
|||
"var_authelia_log_file_path": "/var/authelia/log.jsonl",
|
||||
"var_authelia_session_domain": "example.org",
|
||||
"var_authelia_session_secret": "REPLACE_ME",
|
||||
"var_authelia_storage_path": "/var/authelia/state.db",
|
||||
"var_authelia_storage_encryption_key": "storage_encryption_key",
|
||||
"var_authelia_storage_kind": "sqlite",
|
||||
"var_authelia_storage_data_sqlite_path": "/var/authelia/state.db",
|
||||
"var_authelia_storage_data_postgresql_host": "localhost",
|
||||
"var_authelia_storage_data_postgresql_port": 5432,
|
||||
"var_authelia_storage_data_postgresql_username": "authelia_user",
|
||||
"var_authelia_storage_data_postgresql_password": "REPLACE_ME",
|
||||
"var_authelia_storage_data_postgresql_schema": "authelia",
|
||||
"var_authelia_storage_data_mariadb_host": "localhost",
|
||||
"var_authelia_storage_data_mariadb_port": 3306,
|
||||
"var_authelia_storage_data_mariadb_username": "authelia_user",
|
||||
"var_authelia_storage_data_mariadb_password": "REPLACE_ME",
|
||||
"var_authelia_storage_data_mariadb_schema": "authelia",
|
||||
"var_authelia_ntp_server": "time.cloudflare.com:123",
|
||||
"var_authelia_notification_mode": "smtp",
|
||||
"var_authelia_notification_file_path": "/var/authelia/notifications",
|
||||
|
|
|
@ -126,9 +126,30 @@
|
|||
},
|
||||
"storage": {
|
||||
"encryption_key": "{{var_authelia_storage_encryption_key}}",
|
||||
{% if var_authelia_storage_kind == "sqlite" %}
|
||||
"local": {
|
||||
"path": "{{var_authelia_storage_path}}"
|
||||
"path": "{{var_authelia_storage_data_sqlite_path}}"
|
||||
}
|
||||
{% endif %}
|
||||
{% if var_authelia_storage_kind == "postgresql" %}
|
||||
"postgres": {
|
||||
"host": "{{var_authelia_storage_data_postgresql_host}}",
|
||||
"port": {{var_authelia_storage_data_postgresql_port | string}},
|
||||
"schema": "public",
|
||||
"username": "{{var_authelia_storage_data_postgresql_username}}",
|
||||
"password": "{{var_authelia_storage_data_postgresql_password}}",
|
||||
"database": "{{var_authelia_storage_data_postgresql_schema}}"
|
||||
}
|
||||
{% endif %}
|
||||
{% if var_authelia_storage_kind == "mariadb" %}
|
||||
"mysql": {
|
||||
"host": "{{var_authelia_storage_data_mariadb_host}}",
|
||||
"port": {{var_authelia_storage_data_mariadb_port | string}},
|
||||
"username": "{{var_authelia_storage_data_mariadb_username}}",
|
||||
"password": "{{var_authelia_storage_data_mariadb_password}}",
|
||||
"database": "{{var_authelia_storage_data_mariadb_schema}}"
|
||||
}
|
||||
{% endif %}
|
||||
},
|
||||
"notifier": {
|
||||
"disable_startup_check": true,
|
||||
|
|
Loading…
Add table
Reference in a new issue