22# Authelia configuration #
33###############################################################
44
5- host: 0.0.0.0
6- port: 9091
7- log_level: warn
5+ server:
6+ address: tcp://0.0.0.0:9091/
7+ buffers:
8+ read: 4096
9+ write: 4096
10+ endpoints:
11+ enable_pprof: false
12+ enable_expvars: false
13+ disable_healthcheck: false
14+ tls:
15+ key: ""
16+ certificate: ""
817
9- # This secret can also be set using the env variables AUTHELIA_JWT_SECRET_FILE
10- # I used this site to generate the secret: https://www.grc.com/passwords.htm
11- # jwt_secret: SECRET_GOES_HERE # use docker secret file instead AUTHELIA_JWT_SECRET_FILE
12-
13- # https://docs. authelia.com/configuration/miscellaneous.html#default-redirection-url
14- default_redirection_url: https://authelia.example.com
18+ # https://www.authelia.com/configuration/miscellaneous/logging/
19+ log:
20+ level: info
21+ format: text
22+ file_path: /config/ authelia.log
23+ keep_stdout: true
1524
25+ # https://www.authelia.com/configuration/second-factor/time-based-one-time-password/
1626totp:
17- issuer: authelia .com
27+ issuer: example .com
1828 period: 30
1929 skew: 1
2030
31+ # AUTHELIA_DUO_PLACEHOLDER
2132# Enable the following for Duo Push Notification support
2233# https://www.authelia.com/docs/features/2fa/push-notifications.html
2334#duo_api:
@@ -26,78 +37,90 @@ totp:
2637# # This secret can also be set using the env variables AUTHELIA_DUO_API_SECRET_KEY_FILE
2738# secret_key: # use docker secret file instead AUTHELIA_DUO_API_SECRET_KEY_FILE
2839
40+ # https://www.authelia.com/reference/guides/passwords/
2941authentication_backend:
42+ password_reset:
43+ disable: false
44+ refresh_interval: 5m
3045 file:
31- path: /config/users_database.yml
32- # customize passwords based on https://docs.authelia.com/configuration/authentication/file.html
46+ path: /config/users.yml
3347 password:
3448 algorithm: argon2id
3549 iterations: 1
3650 salt_length: 16
3751 parallelism: 8
38- memory: 1024 # blocks this much of the RAM. Tune this.
52+ memory: 256 # blocks this much of the RAM
3953
40- # https://docs .authelia.com/configuration/ access-control.html
54+ # https://www .authelia.com/overview/authorization/ access-control/
4155access_control:
4256 default_policy: deny
4357 rules:
44- # Rules applied to everyone
45- - domain: authelia.example.com
46- policy: bypass
47- # - domain: radarr.example.com
48- # policy: bypass
49- # subject: "group:admins"
50- # resources:
51- # - "^/api/.*$"
52- # - domain: "*.example.com"
53- # policy: one_factor
54- - domain: "*.example.com"
55- policy: two_factor
56- - domain: "example.com"
58+ # - domain:
59+ # - "*.example.com"
60+ # - "example.com"
61+ # policy: bypass
62+ # networks: # bypass authentication for local networks
63+ # - 10.0.0.0/8
64+ # - 192.168.0.0/16
65+ # - 172.16.0.0/12
66+ - domain:
67+ - "*.example.com"
68+ - "example.com"
5769 policy: two_factor
5870
71+ # https://www.authelia.com/configuration/session/introduction/
5972session:
6073 name: authelia_session
61- # This secret can also be set using the env variables AUTHELIA_SESSION_SECRET_FILE
62- # Used a different secret, but the same site as jwt_secret above.
63- # secret: SECRET_GOES_HERE # use docker secret file instead AUTHELIA_SESSION_SECRET_FILE
64- expiration: 3600 # 1 hour
65- inactivity: 300 # 5 minutes
66- domain: example.com # Should match whatever your root protected domain is
74+ same_site: lax
75+ expiration: 7h
76+ inactivity: 5m
77+ remember_me: 1M
78+ cookies:
79+ - domain: 'example.com'
80+ authelia_url: 'https://authelia.example.com'
81+ default_redirection_url: 'https://example.com'
82+ # AUTHELIA_REDIS_PLACEHOLDER
83+ # Optional. Can improve performance on a busy system. If not enabled, session info is stored in memory.
84+ # redis:
85+ # host: redis
86+ # port: 6379
87+ # This secret can also be set using the env variables AUTHELIA_SESSION_REDIS_PASSWORD_FILE
88+ # password: REDIS_PASSWORD
6789
68- # Optional. Can improve performance on a busy system. If not enabled, session info is stored in memory.
69- # redis:
70- # host: redis
71- # port: 6379
72- # This secret can also be set using the env variables AUTHELIA_SESSION_REDIS_PASSWORD_FILE
73- # password: authelia
7490
91+ # https://www.authelia.com/configuration/security/regulation/
7592regulation:
7693 max_retries: 3
77- find_time: 120
78- ban_time: 300
79-
94+ find_time: 10m
95+ ban_time: 12h
96+
97+ # https://www.authelia.com/configuration/storage/introduction/
8098storage:
81- # For local storage, uncomment lines below and comment out mysql. https://docs.authelia.com/configuration/storage/sqlite.html
82- # local:
83- # path: /config/db.sqlite3
84- mysql:
85- # MySQL allows running multiple authelia instances. Create database and enter details below.
86- host: MYSQL_HOST
87- port: 3306
88- database: authelia
89- username: DBUSERNAME
90- # Password can also be set using a secret: https://docs.authelia.com/configuration/secrets.html
91- # password: use docker secret file instead AUTHELIA_STORAGE_MYSQL_PASSWORD_FILE
99+ # For local storage, uncomment lines below and comment out mysql. https://docs.authelia.com/configuration/storage/sqlite.html
100+ # This is good for the beginning. If you have a busy site then switch to other databases.
101+ local:
102+ path: /config/db.sqlite3
103+ # mysql:
104+ # # https://www.authelia.com/configuration/storage/mysql/
105+ # # MySQL allows running multiple authelia instances. Create database and enter details below.
106+ # address: 'tcp://127.0.0.1:3306'
107+ # port: 3306
108+ # database: authelia
109+ # username: DBUSERNAME
110+ # # Password can also be set using a secret: https://www.authelia.com/configuration/methods/secrets/#environment-variables
111+ # # password: DBPASSWORD
112+ # encryption_key: 'a_very_important_secret' # Can also be set using a secret: AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE
92113
114+ # https://www.authelia.com/configuration/notifications/introduction/
93115notifier:
94- smtp:
95- username: SMTP_USERNAME
96- # This secret can also be set using the env variables AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE
97- # password: # use docker secret file instead AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE
98- host: SMTP_HOST
99- port: 587 #465
100- sender: SENDER_EMAIL
101- # For testing purpose, notifications can be sent in a file. Be sure map the volume in docker-compose.
102- # filesystem:
103- # filename: /tmp/authelia/notification.txt
116+ disable_startup_check: false
117+ # For testing purposes, notifications can be sent in a file. Be sure to map the volume in docker-compose.
118+ filesystem:
119+ filename: /config/notifications.txt
120+ # smtp:
121+ # username: SMTP_USERNAME
122+ # # This secret can also be set using secret: https://www.authelia.com/configuration/methods/secrets/#environment-variables
123+ # # password: SMTP_PASSWORD
124+ # host: SMTP_HOST
125+ # port: 587 #465
126+ # sender: SENDER_EMAIL
0 commit comments