diff options
| author | shu <nvcsadjkojf@outlook.com> | 2026-07-27 00:22:33 +0800 |
|---|---|---|
| committer | shu <nvcsadjkojf@outlook.com> | 2026-07-27 00:22:33 +0800 |
| commit | aaa0cf501ce44a7c7c54c7c5c6485cfb7f60e583 (patch) | |
| tree | da94ef66e9830d09961e577f87d36e63a6076ce5 /docker/authelia | |
| parent | 338cc101f127e4841689c1f81227ee033e57ad28 (diff) | |
Add Docker Compose deployment
Diffstat (limited to 'docker/authelia')
| -rw-r--r-- | docker/authelia/configuration.template.yml | 66 | ||||
| -rw-r--r-- | docker/authelia/users_database.template.yml | 8 |
2 files changed, 74 insertions, 0 deletions
diff --git a/docker/authelia/configuration.template.yml b/docker/authelia/configuration.template.yml new file mode 100644 index 0000000..bd29e00 --- /dev/null +++ b/docker/authelia/configuration.template.yml @@ -0,0 +1,66 @@ +server: + address: tcp://0.0.0.0:9091/ + +log: + level: info + format: text + +theme: auto + +identity_validation: + reset_password: {} + +authentication_backend: + password_reset: + disable: true + file: + path: /config/users_database.yml + watch: true + password: + algorithm: argon2 + argon2: + variant: argon2id + iterations: 3 + memory: 65536 + parallelism: 4 + key_length: 32 + salt_length: 16 + +access_control: + default_policy: deny + rules: + - domain: auth.__BASE_DOMAIN__ + policy: bypass + - domain: + - wiki.__BASE_DOMAIN__ + - dav.__BASE_DOMAIN__ + policy: one_factor + subject: + - group:tdwiki + +session: + name: authelia_session + same_site: lax + inactivity: 1h + expiration: 12h + remember_me: 30d + cookies: + - domain: __BASE_DOMAIN__ + authelia_url: https://auth.__BASE_DOMAIN__ + default_redirection_url: https://wiki.__BASE_DOMAIN__ + redis: + host: redis + port: 6379 + +regulation: + max_retries: 5 + find_time: 2m + ban_time: 10m + +storage: + local: + path: /var/lib/authelia/db.sqlite3 + +notifier: + filesystem: + filename: /var/lib/authelia/notification.txt diff --git a/docker/authelia/users_database.template.yml b/docker/authelia/users_database.template.yml new file mode 100644 index 0000000..2ea7159 --- /dev/null +++ b/docker/authelia/users_database.template.yml @@ -0,0 +1,8 @@ +users: + __USERNAME__: + disabled: false + displayname: "__DISPLAY_NAME__" + password: "__PASSWORD_HASH__" + email: "__EMAIL__" + groups: + - tdwiki |
