2019-03-24 21:15:49 +07:00
|
|
|
###############################################################
|
|
|
|
# Authelia minimal configuration #
|
|
|
|
###############################################################
|
|
|
|
|
|
|
|
port: 9091
|
|
|
|
|
2019-11-25 03:27:59 +07:00
|
|
|
logs_level: trace
|
2019-03-24 21:15:49 +07:00
|
|
|
|
2019-04-25 04:52:08 +07:00
|
|
|
jwt_secret: very_important_secret
|
|
|
|
|
2019-03-24 21:15:49 +07:00
|
|
|
authentication_backend:
|
|
|
|
file:
|
2019-11-25 03:27:59 +07:00
|
|
|
path: /var/lib/authelia/users.yml
|
2019-03-24 21:15:49 +07:00
|
|
|
|
|
|
|
session:
|
|
|
|
secret: unsecure_session_secret
|
|
|
|
domain: example.com
|
2019-12-06 15:59:32 +07:00
|
|
|
expiration: 3600 # 1 hour
|
|
|
|
inactivity: 300 # 5 minutes
|
2019-03-24 21:15:49 +07:00
|
|
|
|
|
|
|
# Configuration of the storage backend used to store data and secrets. i.e. totp data
|
|
|
|
storage:
|
|
|
|
local:
|
2019-04-25 04:52:08 +07:00
|
|
|
path: /tmp/authelia/db.sqlite
|
2019-03-24 21:15:49 +07:00
|
|
|
|
|
|
|
# TOTP Issuer Name
|
|
|
|
#
|
|
|
|
# This will be the issuer name displayed in Google Authenticator
|
|
|
|
# See: https://github.com/google/google-authenticator/wiki/Key-Uri-Format for more info on issuer names
|
|
|
|
totp:
|
|
|
|
issuer: example.com
|
|
|
|
|
|
|
|
# The Duo Push Notification API configuration
|
|
|
|
duo_api:
|
|
|
|
hostname: duo.example.com
|
|
|
|
integration_key: ABCDEFGHIJKL
|
|
|
|
secret_key: abcdefghijklmnopqrstuvwxyz123456789
|
|
|
|
|
|
|
|
# Access Control
|
|
|
|
#
|
2019-11-25 03:27:59 +07:00
|
|
|
# Access control is a set of rules you can use to restrict user access to certain
|
2019-03-24 21:15:49 +07:00
|
|
|
# resources.
|
|
|
|
access_control:
|
|
|
|
# Default policy can either be `bypass`, `one_factor`, `two_factor` or `deny`.
|
|
|
|
default_policy: deny
|
|
|
|
|
|
|
|
rules:
|
|
|
|
- domain: singlefactor.example.com
|
|
|
|
policy: one_factor
|
|
|
|
|
|
|
|
- domain: public.example.com
|
|
|
|
policy: bypass
|
|
|
|
|
|
|
|
- domain: secure.example.com
|
|
|
|
policy: two_factor
|
|
|
|
|
2019-11-25 03:27:59 +07:00
|
|
|
- domain: "*.example.com"
|
2019-03-24 21:15:49 +07:00
|
|
|
subject: "group:admins"
|
|
|
|
policy: two_factor
|
|
|
|
|
|
|
|
- domain: dev.example.com
|
|
|
|
resources:
|
2019-11-25 03:27:59 +07:00
|
|
|
- "^/users/john/.*$"
|
2019-03-24 21:15:49 +07:00
|
|
|
subject: "user:john"
|
|
|
|
policy: two_factor
|
|
|
|
|
|
|
|
- domain: dev.example.com
|
|
|
|
resources:
|
2019-11-25 03:27:59 +07:00
|
|
|
- "^/users/harry/.*$"
|
2019-03-24 21:15:49 +07:00
|
|
|
subject: "user:harry"
|
|
|
|
policy: two_factor
|
|
|
|
|
2019-11-25 03:27:59 +07:00
|
|
|
- domain: "*.mail.example.com"
|
2019-03-24 21:15:49 +07:00
|
|
|
subject: "user:bob"
|
|
|
|
policy: two_factor
|
|
|
|
|
|
|
|
- domain: dev.example.com
|
|
|
|
resources:
|
2019-11-25 03:27:59 +07:00
|
|
|
- "^/users/bob/.*$"
|
2019-03-24 21:15:49 +07:00
|
|
|
subject: "user:bob"
|
|
|
|
policy: two_factor
|
|
|
|
|
|
|
|
# Configuration of the authentication regulation mechanism.
|
2019-11-25 03:27:59 +07:00
|
|
|
regulation:
|
2019-03-24 21:15:49 +07:00
|
|
|
# Set it to 0 to disable max_retries.
|
|
|
|
max_retries: 3
|
|
|
|
|
2019-11-25 03:27:59 +07:00
|
|
|
# The user is banned if the authenticaction failed `max_retries` times in a `find_time` seconds window.
|
2019-03-24 21:15:49 +07:00
|
|
|
find_time: 300
|
|
|
|
|
|
|
|
# The length of time before a banned user can login again.
|
|
|
|
ban_time: 900
|
|
|
|
|
|
|
|
notifier:
|
|
|
|
# Use a SMTP server for sending notifications
|
|
|
|
smtp:
|
2019-11-02 21:32:58 +07:00
|
|
|
host: smtp
|
2019-03-24 21:15:49 +07:00
|
|
|
port: 1025
|
|
|
|
sender: admin@example.com
|