Files
nixos-core/config/authelia/configuration.yml
kiskaadee 99bda8740f
Core Architecture & Invariant CI / validate (pull_request) Successful in 1m15s
Core Architecture & Invariant CI / validate (push) Successful in 1m23s
fix(nixos,authelia): grant homelab-operators read access to rendered env templates and fix Authelia env syntax
- Add group = "homelab-operators" and mode = "0440" to sops.templates."homeserver.env" and "traefik-deployments.env" so homelab-appctl.service can read rendered env files
- Remove unsupported second fallback argument from {{ env "LLDAP_LDAP_BASE_DN" }} in config/authelia/configuration.yml
2026-11-15 23:45:54 -05:00

61 lines
1.4 KiB
YAML

server:
address: tcp://0.0.0.0:9091
log:
level: info
totp:
issuer: authelia.com
authentication_backend:
ldap:
implementation: custom
address: 'ldap://lldap:3890'
timeout: 5s
start_tls: false
base_dn: '{{ env "LLDAP_LDAP_BASE_DN" }}'
additional_users_dn: 'ou=people'
users_filter: '(&({username_attribute}={input})(objectClass=person))'
additional_groups_dn: 'ou=groups'
groups_filter: '(member={dn})'
attributes:
distinguished_name: 'dn'
username: 'uid'
display_name: 'displayName'
mail: 'mail'
group_name: 'cn'
user: 'uid=admin,ou=people,{{ env "LLDAP_LDAP_BASE_DN" }}'
access_control:
default_policy: deny
rules:
- domain: 'auth.{{ env "DOMAIN" }}'
policy: bypass
- domain: 'users.{{ env "DOMAIN" }}'
policy: one_factor
- domain: '*.{{ env "DOMAIN" }}'
policy: one_factor
session:
name: authelia_session
secret: '{{ env "AUTHELIA_SESSION_SECRET" }}'
expiration: 7d
inactivity: 3d
remember_me: 1M
cookies:
- domain: '{{ env "DOMAIN" }}'
authelia_url: 'https://auth.{{ env "DOMAIN" }}'
identity_validation:
reset_password:
jwt_secret: '{{ env "AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET" }}'
storage:
local:
path: /config/db.sqlite3
encryption_key: '{{ env "AUTHELIA_STORAGE_ENCRYPTION_KEY" }}'
notifier:
filesystem:
filename: /config/emails.txt