2021-04-10 20:51:00 +00:00
|
|
|
---
|
2023-05-07 06:39:17 +00:00
|
|
|
default_redirection_url: 'https://home.example.com:8080/'
|
2021-08-02 11:55:30 +00:00
|
|
|
|
|
|
|
server:
|
2023-05-07 06:39:17 +00:00
|
|
|
address: 'tcp://127.0.0.1:9091'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
2021-06-08 13:15:43 +00:00
|
|
|
log:
|
2023-05-07 06:39:17 +00:00
|
|
|
level: 'debug'
|
2021-06-08 13:15:43 +00:00
|
|
|
|
2020-04-23 01:11:32 +00:00
|
|
|
totp:
|
2023-05-07 06:39:17 +00:00
|
|
|
issuer: 'authelia.com'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
duo_api:
|
2023-05-07 06:39:17 +00:00
|
|
|
hostname: 'api-123456789.example.com'
|
|
|
|
integration_key: 'ABCDEF'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
authentication_backend:
|
|
|
|
ldap:
|
2023-05-07 06:39:17 +00:00
|
|
|
address: 'ldap://127.0.0.1'
|
|
|
|
base_dn: 'dc=example,dc=com'
|
|
|
|
username_attribute: 'uid'
|
|
|
|
additional_users_dn: 'ou=users'
|
|
|
|
users_filter: '(&({username_attribute}={input})(objectCategory=person)(objectClass=user))'
|
|
|
|
additional_groups_dn: 'ou=groups'
|
|
|
|
groups_filter: '(&(member={dn})(objectClass=groupOfNames))'
|
|
|
|
group_name_attribute: 'cn'
|
|
|
|
mail_attribute: 'mail'
|
|
|
|
user: 'cn=admin,dc=example,dc=com'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
access_control:
|
2023-05-07 06:39:17 +00:00
|
|
|
default_policy: 'deny'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
rules:
|
|
|
|
# Rules applied to everyone
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: 'public.example.com'
|
|
|
|
policy: 'bypass'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: 'secure.example.com'
|
|
|
|
policy: 'one_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
# Network based rule, if not provided any network matches.
|
|
|
|
networks:
|
2023-05-07 06:39:17 +00:00
|
|
|
- '192.168.1.0/24'
|
|
|
|
- domain: 'secure.example.com'
|
|
|
|
policy: 'two_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: ['singlefactor.example.com', 'onefactor.example.com']
|
|
|
|
policy: 'one_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
# Rules applied to 'admins' group
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: 'mx2.mail.example.com'
|
|
|
|
subject: 'group:admins'
|
|
|
|
policy: 'deny'
|
|
|
|
- domain: '*.example.com'
|
|
|
|
subject: 'group:admins'
|
|
|
|
policy: 'two_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
# Rules applied to 'dev' group
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: 'dev.example.com'
|
2020-04-23 01:11:32 +00:00
|
|
|
resources:
|
2023-05-07 06:39:17 +00:00
|
|
|
- '^/groups/dev/.*$'
|
|
|
|
subject: 'group:dev'
|
|
|
|
policy: 'two_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
# Rules applied to user 'john'
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: 'dev.example.com'
|
2020-04-23 01:11:32 +00:00
|
|
|
resources:
|
2023-05-07 06:39:17 +00:00
|
|
|
- '^/users/john/.*$'
|
|
|
|
subject: 'user:john'
|
|
|
|
policy: 'two_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
# Rules applied to 'dev' group and user 'john'
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: 'dev.example.com'
|
2020-04-23 01:11:32 +00:00
|
|
|
resources:
|
2023-05-07 06:39:17 +00:00
|
|
|
- '^/deny-all.*$'
|
|
|
|
subject: ['group:dev', 'user:john']
|
|
|
|
policy: 'deny'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
# Rules applied to user 'harry'
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: 'dev.example.com'
|
2020-04-23 01:11:32 +00:00
|
|
|
resources:
|
2023-05-07 06:39:17 +00:00
|
|
|
- '^/users/harry/.*$'
|
|
|
|
subject: 'user:harry'
|
|
|
|
policy: 'two_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
# Rules applied to user 'bob'
|
2023-05-07 06:39:17 +00:00
|
|
|
- domain: '*.mail.example.com'
|
|
|
|
subject: 'user:bob'
|
|
|
|
policy: 'two_factor'
|
|
|
|
- domain: 'dev.example.com'
|
2020-04-23 01:11:32 +00:00
|
|
|
resources:
|
2023-05-07 06:39:17 +00:00
|
|
|
- '^/users/bob/.*$'
|
|
|
|
subject: 'user:bob'
|
|
|
|
policy: 'two_factor'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
session:
|
2023-05-07 06:39:17 +00:00
|
|
|
name: 'authelia_session'
|
|
|
|
expiration: '1h' # 1 hour
|
|
|
|
inactivity: '5m' # 5 minutes
|
2023-01-12 10:57:44 +00:00
|
|
|
remember_me: -1
|
2023-05-07 06:39:17 +00:00
|
|
|
domain: 'example.com'
|
2020-04-23 01:11:32 +00:00
|
|
|
redis:
|
2023-05-07 06:39:17 +00:00
|
|
|
host: '127.0.0.1'
|
2020-04-23 01:11:32 +00:00
|
|
|
port: 6379
|
|
|
|
|
|
|
|
regulation:
|
|
|
|
max_retries: 3
|
2023-05-07 06:39:17 +00:00
|
|
|
find_time: '2m'
|
|
|
|
ban_time: '5m'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
storage:
|
|
|
|
postgres:
|
2023-05-07 06:39:17 +00:00
|
|
|
address: 'tcp://127.0.0.1:5432'
|
|
|
|
database: 'authelia'
|
|
|
|
username: 'authelia'
|
2020-04-23 01:11:32 +00:00
|
|
|
|
|
|
|
notifier:
|
|
|
|
smtp:
|
2023-05-07 06:39:17 +00:00
|
|
|
address: 'smtp://127.0.0.1:1025'
|
|
|
|
username: 'test'
|
|
|
|
sender: 'Admin <admin@example.com>'
|
2021-04-10 20:51:00 +00:00
|
|
|
disable_require_tls: true
|
|
|
|
...
|