feat: add option authelia_storage_encryption_key #2

Merged
xoxys merged 1 commits from encryption-key into master 2021-12-04 15:37:10 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
---
authelia_version: 4.30.1
authelia_version: 4.33.1
authelia_user: "authelia_adm"
authelia_user_home: "/home/{{ authelia_user }}"
authelia_group: "{{ authelia_user }}"
@ -55,6 +55,13 @@ authelia_auth_ldap_display_name_attribute: displayname
authelia_auth_ldap_bind_user: cn=admin,dc=example,dc=com
authelia_auth_ldap_bind_password: password
# @var authelia_storage_encryption_key:description: >
# The encryption key used to encrypt data in the database. The minimum length of this key is 20 characters,
# however we generally recommend above 64 characters. For security reasons, it's highly recommended to create
# a unique key.
# @end
authelia_storage_encryption_key: bp33fh3cTswzdMndXrrVMrLd
# @var authelia_storage_backend:description: >
# Set storage backend. Available options are `local|postgres`. All `authelia_storage_db_` variables will only work
# while the PostgreSQL backend is enabled.

View File

@ -104,6 +104,7 @@ regulation:
ban_time: {{ authelia_regulation_ban_time }}
storage:
encryption_key: {{ authelia_storage_encryption_key }}
{% if authelia_storage_backend == "postgres" %}
postgres:
host: {{ authelia_storage_db_host }}