105 lines
3.6 KiB
YAML
105 lines
3.6 KiB
YAML
---
|
|
server:
|
|
port: 9091
|
|
tls:
|
|
certificate: /config/ssl/cert.pem
|
|
key: /config/ssl/key.pem
|
|
|
|
log:
|
|
level: debug
|
|
|
|
jwt_secret: unsecure_secret
|
|
|
|
authentication_backend:
|
|
file:
|
|
path: /config/users.yml
|
|
|
|
session:
|
|
secret: unsecure_session_secret
|
|
domain: example.com
|
|
expiration: 3600 # 1 hour
|
|
inactivity: 300 # 5 minutes
|
|
remember_me_duration: 1y
|
|
# We use redis here to keep the users authenticated when Authelia restarts
|
|
# It eases development.
|
|
redis:
|
|
host: redis
|
|
port: 6379
|
|
|
|
storage:
|
|
encryption_key: a_not_so_secure_encryption_key
|
|
local:
|
|
path: /config/db.sqlite
|
|
|
|
access_control:
|
|
default_policy: deny
|
|
rules:
|
|
- domain: "home.example.com"
|
|
policy: bypass
|
|
- domain: "public.example.com"
|
|
policy: bypass
|
|
- domain: "admin.example.com"
|
|
policy: two_factor
|
|
- domain: "secure.example.com"
|
|
policy: two_factor
|
|
- domain: "singlefactor.example.com"
|
|
policy: one_factor
|
|
- domain: "oidc.example.com"
|
|
policy: two_factor
|
|
- domain: "oidc-public.example.com"
|
|
policy: bypass
|
|
|
|
notifier:
|
|
smtp:
|
|
host: smtp
|
|
port: 1025
|
|
sender: admin@example.com
|
|
disable_require_tls: true
|
|
|
|
identity_providers:
|
|
oidc:
|
|
enable_client_debug_messages: true
|
|
hmac_secret: IVPWBkAdJHje3uz7LtFTDU2pFUfh39Xm
|
|
issuer_private_key: |
|
|
-----BEGIN RSA PRIVATE KEY-----
|
|
MIIEogIBAAKCAQEAvOFmoEJFt1JkfdlwM3vJFg5rrY9d6LyyqezjZkBZDQ4qdEEU
|
|
dCrbW8ISFTtg9sfbrS3qingUzVP9VOfYPMC3r0ugjJXjhvJdBSaoLlzL3saeyrXk
|
|
frOOvkcWKzeOynqUNPhKy9dchmuLALFfd/Jy7Wzq0y7XxGeNidEmFjMAf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yuS63YWdJEYBy5RrC1
|
|
TQrODJjgD62DFdNUq7nmpQKBgFMJEzI+Q+KPJ0NztTG8t7x61y/W0Vb2yM+9Syn0
|
|
QfJwlZyRR4VMHelHQZFB8dzIJgoLv9+n/8gztEtm5IB8dwUHst2aYaBz5UpDqYQd
|
|
Gz3cIrTuZpcH7DVvFCeIbknJLh+zk1lgFpjTqqvFMi27kANeQtFWnmwmKcRec0As
|
|
K1ZvAoGAV/3YB44/zIoB590+yhpx2HTmDPVHH+J+5O71Pi1D9W13ClBFLrE69wo+
|
|
IQLIstBI5tGOGeuQNjXhDKJ1U30xppZXcnebrkA+oOo+6dy20zghFR2maAGXfWFU
|
|
pM4GsSnSTm0bXPebVouQFqhj7LqcQQzCqRDThmw/Lp1tJUmu40g=
|
|
-----END RSA PRIVATE KEY-----
|
|
clients:
|
|
- id: oidc-tester-app
|
|
secret: foobar
|
|
policy: two_factor
|
|
redirect_uris:
|
|
- https://oidc.example.com:8080/oauth2/callback
|
|
# This client is used for testing purpose. As of now, the app must be protected by ACLs
|
|
# otherwise it won't work properly.
|
|
- id: oidc-tester-app-public
|
|
secret: foobar
|
|
authorization_policy: one_factor
|
|
redirect_uris:
|
|
- https://oidc-public.example.com:8080/oauth2/callback
|
|
...
|