-
Notifications
You must be signed in to change notification settings - Fork 0
/
authelia config instance 1 & 2
220 lines (192 loc) · 4.3 KB
/
authelia config instance 1 & 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
##########################################################
# #
# Authilia Config example1.com on Server 1 #
# #
##########################################################
theme: dark
jwt_secret: "xy"
default_redirection_url: https://example1.com/
server:
host: 0.0.0.0
port: 9091
path: ""
read_buffer_size: 4096
write_buffer_size: 4096
enable_pprof: false
enable_expvars: false
disable_healthcheck: false
tls:
key: ""
certificate: ""
log:
level: info
totp:
disable: true
issuer: example1.com
period: 30
skew: 1
webauthn:
disable: false
display_name: example1 Auth
attestation_conveyance_preference: indirect
user_verification: preferred
timeout: 60s
authentication_backend:
disable_reset_password: true
refresh_interval: 5m
file:
path: /config/users_database.yml
password:
algorithm: argon2id
iterations: 1
key_length: 32
salt_length: 16
memory: 1024
parallelism: 8
access_control:
default_policy: bypass
rules:
## bypass rule
- domain: "app.example1.com"
policy: two_factor
resources:
- "^/admin.*$"
- domain: "example1.com"
policy: two_factor
resources:
- "^/login.*$"
- "^/wp-admin.*$"
- "^/wp-login.*$"
session:
name: example1_auth_session
domain: example1.com
same_site: lax
secret: "xy"
expiration: 1h
inactivity: 5m
remember_me_duration: 2M
# redis:
# host: redis
# port: 6379
# password: "YOUR_REDIS_PASSWORD"
# database_index: 0
# maximum_active_connections: 10
# minimum_idle_connections: 0
regulation:
max_retries: 3
find_time: 10m
ban_time: 12h
storage:
encryption_key: "xy"
local:
path: /config/db.sqlite3
notifier:
disable_startup_check: false
smtp:
username: [email protected]
password: "xy"
host: mail.example.com
port: 587
sender: "example1 Auth <[email protected]>"
identifier: localhost
subject: "[example1 Auth] {title}"
startup_check_address: [email protected]
disable_require_tls: false
disable_html_emails: false
tls:
skip_verify: false
minimum_version: TLS1.2
##########################################################
# #
# Authilia Config example2.com on Server 1 #
# #
##########################################################
theme: dark
jwt_secret: "xy"
default_redirection_url: https://example2.com/
server:
host: 0.0.0.0
port: 9091
path: ""
read_buffer_size: 4096
write_buffer_size: 4096
enable_pprof: false
enable_expvars: false
disable_healthcheck: false
tls:
key: ""
certificate: ""
log:
level: debug
totp:
disable: true
issuer: example2.com
period: 30
skew: 1
webauthn:
disable: false
display_name: example2 Auth
attestation_conveyance_preference: indirect
user_verification: preferred
timeout: 60s
authentication_backend:
disable_reset_password: true
refresh_interval: 5m
file:
path: /config/users_database.yml
password:
algorithm: argon2id
iterations: 1
key_length: 32
salt_length: 16
memory: 1024
parallelism: 8
access_control:
default_policy: bypass
rules:
## bypass rule
- domain: "example2.com"
policy: two_factor
resources:
- "^/login.*$"
- "^/wp-admin.*$"
- "^/wp-login.*$"
session:
name: example2_auth_session
domain: example2.ch
same_site: lax
secret: "xy"
expiration: 1h
inactivity: 5m
remember_me_duration: 2M
# redis:
# host: redis
# port: 6379
# password: "YOUR_REDIS_PASSWORD"
# database_index: 0
# maximum_active_connections: 10
# minimum_idle_connections: 0
regulation:
max_retries: 3
find_time: 10m
ban_time: 12h
storage:
encryption_key: "xy"
local:
path: /config/db.sqlite3
notifier:
disable_startup_check: false
smtp:
username: [email protected]
password: "xy"
host: mail.example.com
port: 587
sender: "example2 Auth <[email protected]>"
identifier: localhost
subject: "[example2 Auth] {title}"
startup_check_address: [email protected]
disable_require_tls: false
disable_html_emails: false
tls:
skip_verify: false
minimum_version: TLS1.2