2020-03-27 06:43:10 +07:00
|
|
|
###############################################################
|
|
|
|
# Authelia configuration #
|
|
|
|
###############################################################
|
|
|
|
|
|
|
|
host: 0.0.0.0
|
|
|
|
port: 9091
|
|
|
|
log_level: debug
|
2020-05-08 08:01:57 +07:00
|
|
|
# This secret can also be set using the env variables AUTHELIA_JWT_SECRET_FILE
|
2020-03-27 06:43:10 +07:00
|
|
|
jwt_secret: a_very_important_secret
|
|
|
|
default_redirection_url: https://public.example.com
|
|
|
|
totp:
|
|
|
|
issuer: authelia.com
|
|
|
|
|
|
|
|
#duo_api:
|
|
|
|
# hostname: api-123456789.example.com
|
|
|
|
# integration_key: ABCDEF
|
2020-05-08 08:01:57 +07:00
|
|
|
# # This secret can also be set using the env variables AUTHELIA_DUO_API_SECRET_KEY_FILE
|
2020-03-27 06:43:10 +07:00
|
|
|
# secret_key: 1234567890abcdefghifjkl
|
|
|
|
|
|
|
|
authentication_backend:
|
|
|
|
file:
|
|
|
|
path: /etc/authelia/users_database.yml
|
|
|
|
|
|
|
|
access_control:
|
|
|
|
default_policy: deny
|
|
|
|
rules:
|
|
|
|
# Rules applied to everyone
|
|
|
|
- domain: public.example.com
|
|
|
|
policy: bypass
|
|
|
|
- domain: traefik.example.com
|
|
|
|
policy: one_factor
|
|
|
|
- domain: secure.example.com
|
|
|
|
policy: two_factor
|
|
|
|
|
|
|
|
session:
|
|
|
|
name: authelia_session
|
2020-05-08 08:01:57 +07:00
|
|
|
# This secret can also be set using the env variables AUTHELIA_SESSION_SECRET_FILE
|
2020-03-27 06:43:10 +07:00
|
|
|
secret: unsecure_session_secret
|
|
|
|
expiration: 3600 # 1 hour
|
|
|
|
inactivity: 300 # 5 minutes
|
|
|
|
domain: example.com # Should match whatever your root protected domain is
|
|
|
|
|
|
|
|
redis:
|
|
|
|
host: redis
|
|
|
|
port: 6379
|
2020-05-08 08:01:57 +07:00
|
|
|
# This secret can also be set using the env variables AUTHELIA_SESSION_REDIS_PASSWORD_FILE
|
2020-05-08 20:00:14 +07:00
|
|
|
# password: authelia
|
2020-03-27 06:43:10 +07:00
|
|
|
|
|
|
|
regulation:
|
|
|
|
max_retries: 3
|
|
|
|
find_time: 120
|
|
|
|
ban_time: 300
|
|
|
|
|
|
|
|
storage:
|
|
|
|
local:
|
|
|
|
path: /var/lib/authelia/db.sqlite3
|
|
|
|
|
|
|
|
notifier:
|
|
|
|
smtp:
|
|
|
|
username: test
|
2020-05-08 08:01:57 +07:00
|
|
|
# This secret can also be set using the env variables AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE
|
2020-03-27 06:43:10 +07:00
|
|
|
password: password
|
|
|
|
host: mail.example.com
|
|
|
|
port: 25
|
|
|
|
sender: admin@example.com
|