2021-04-10 20:51:00 +00:00
|
|
|
---
|
2019-03-02 21:27:54 +00:00
|
|
|
###############################################################
|
|
|
|
# Authelia minimal configuration #
|
|
|
|
###############################################################
|
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
jwt_secret: 'unsecure_secret'
|
|
|
|
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://:9091'
|
2021-08-02 11:55:30 +00:00
|
|
|
tls:
|
2023-05-07 06:41:41 +00:00
|
|
|
certificate: '/pki/public.backend.crt'
|
|
|
|
key: '/pki/private.backend.pem'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
2021-06-08 13:15:43 +00:00
|
|
|
log:
|
2023-05-07 06:41:41 +00:00
|
|
|
level: 'debug'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
|
|
|
authentication_backend:
|
|
|
|
file:
|
2023-05-07 06:41:41 +00:00
|
|
|
path: '/config/users.yml'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
|
|
|
session:
|
2023-05-07 06:41:41 +00:00
|
|
|
secret: 'unsecure_session_secret'
|
2023-01-12 10:57:44 +00:00
|
|
|
cookies:
|
2023-01-25 09:36:40 +00:00
|
|
|
- name: 'authelia_sessin'
|
|
|
|
domain: 'example.com'
|
|
|
|
authelia_url: 'https://login.example.com:8080'
|
2023-01-12 10:57:44 +00:00
|
|
|
inactivity: 5
|
2023-05-07 06:41:41 +00:00
|
|
|
expiration: '8s'
|
|
|
|
remember_me: '1y'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
|
|
|
storage:
|
2023-05-07 06:41:41 +00:00
|
|
|
encryption_key: 'a_not_so_secure_encryption_key'
|
2019-03-02 21:27:54 +00:00
|
|
|
local:
|
2023-05-07 06:41:41 +00:00
|
|
|
path: '/config/db.sqlite'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
|
|
|
totp:
|
2023-05-07 06:41:41 +00:00
|
|
|
issuer: 'example.com'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
|
|
|
access_control:
|
2023-05-07 06:41:41 +00:00
|
|
|
default_policy: 'deny'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
|
|
|
rules:
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'singlefactor.example.com'
|
|
|
|
policy: 'one_factor'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: '*.example.com'
|
|
|
|
subject: 'group:admins'
|
|
|
|
policy: 'two_factor'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'dev.example.com'
|
2019-03-02 21:27:54 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/users/john/.*$'
|
|
|
|
subject: 'user:john'
|
|
|
|
policy: 'two_factor'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'dev.example.com'
|
2019-03-02 21:27:54 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/users/harry/.*$'
|
|
|
|
subject: 'user:harry'
|
|
|
|
policy: 'two_factor'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: '*.mail.example.com'
|
|
|
|
subject: 'user:bob'
|
|
|
|
policy: 'two_factor'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'dev.example.com'
|
2019-03-02 21:27:54 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/users/bob/.*$'
|
|
|
|
subject: 'user:bob'
|
|
|
|
policy: 'two_factor'
|
2019-03-02 21:27:54 +00:00
|
|
|
|
2019-11-02 14:32:58 +00:00
|
|
|
regulation:
|
2019-03-02 21:27:54 +00:00
|
|
|
max_retries: 3
|
2023-05-07 06:41:41 +00:00
|
|
|
find_time: '5s'
|
2020-04-09 01:05:17 +00:00
|
|
|
ban_time: 10
|
2019-03-02 21:27:54 +00:00
|
|
|
|
|
|
|
notifier:
|
|
|
|
smtp:
|
2023-05-07 06:39:17 +00:00
|
|
|
address: 'smtp://smtp:1025'
|
2023-05-07 06:41:41 +00:00
|
|
|
sender: 'admin@example.com'
|
2021-04-10 20:51:00 +00:00
|
|
|
disable_require_tls: true
|
|
|
|
...
|