mirror of
https://github.com/ImranR98/selfhostingfromscratch.git
synced 2026-04-24 06:38:36 -04:00
Use Authelia for app authentication
This commit is contained in:
45
authelia_config/configuration.yml
Normal file
45
authelia_config/configuration.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
jwt_secret: o1F3utPMgWDabE2QiJCfpmWGLpct+82L1FDAl5EbLKg=
|
||||
|
||||
log:
|
||||
level: debug
|
||||
|
||||
totp:
|
||||
issuer: imranr.cloud
|
||||
|
||||
authentication_backend:
|
||||
file:
|
||||
path: /config/users_database.yml
|
||||
|
||||
access_control:
|
||||
rules:
|
||||
- domain: files.imranr.cloud
|
||||
resources:
|
||||
- '^/share([/?].*)?$'
|
||||
- '^/static([/?].*)?$'
|
||||
- '^/api/public([/?].*)?$'
|
||||
policy: bypass
|
||||
- domain: '*.imranr.cloud'
|
||||
policy: two_factor
|
||||
|
||||
session:
|
||||
secret: NKKxihcGtg7+L4KBOgZ5EkQ+lTbSanRD2h7fyG1kwmU=
|
||||
cookies:
|
||||
- domain: imranr.cloud
|
||||
authelia_url: https://auth.imranr.cloud
|
||||
redis:
|
||||
host: authelia-db
|
||||
port: 6379
|
||||
|
||||
regulation:
|
||||
max_retries: 3
|
||||
find_time: 120
|
||||
ban_time: 300
|
||||
|
||||
storage:
|
||||
encryption_key: 'W51AIX8vy6HngZeH96ZtN05dBrLrF7sLLJxgQWEbnsQ='
|
||||
local:
|
||||
path: /config/db.sqlite3
|
||||
|
||||
notifier:
|
||||
filesystem:
|
||||
filename: /config/notification.txt
|
||||
8
authelia_config/users_database.yml
Normal file
8
authelia_config/users_database.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
users:
|
||||
admin:
|
||||
disabled: false
|
||||
displayname: "Admin"
|
||||
password: "$argon2id$v=19$m=65536,t=3,p=4$JhBeqYrylaX/0+y3F4j1Ow$E48HpwTxF1qdUeRufRp5wCR1Hg/nh1mYohm0pSr4lBo" # docker run -it authelia/authelia:latest authelia crypto hash generate argon2
|
||||
email: contact@imranr.dev
|
||||
groups:
|
||||
- admins
|
||||
Reference in New Issue
Block a user