Update deploy workflow branch and add Authelia configuration and user database

This commit is contained in:
elfateh4
2025-12-01 19:10:10 +01:00
parent 4b23c27bc1
commit 47e640b969
4 changed files with 117 additions and 15 deletions

View File

@@ -0,0 +1,58 @@
---
# Authelia configuration
# This is a minimal configuration for getting started with Authelia
server:
port: 9091
endpoints:
authz:
forward-auth:
implementation: 'ForwardAuth'
authentication_backend:
file:
path: '/config/users_database.yml'
access_control:
default_policy: 'deny'
rules:
- domain: 'pgadmin.gate.${DOMAIN}'
policy: 'two_factor'
- domain: '*.gate.${DOMAIN}'
policy: 'one_factor'
session:
name: 'authelia_session'
secret: '${AUTHELIA_SESSION_SECRET}'
cookies:
- domain: 'gate.${DOMAIN}'
authelia_url: 'https://auth.gate.${DOMAIN}'
default_redirection_url: 'https://login.gate.${DOMAIN}'
storage:
postgres:
host: 'authelia-db'
port: 5432
database: 'authelia'
username: 'authelia'
password: '${AUTHELIA_DB_PASSWORD}'
notifier:
smtp:
username: 'authelia'
password: 'dummy_password'
host: 'smtp.example.com'
port: 587
sender: 'authelia@example.com'
jwt_secret: '${AUTHELIA_JWT_SECRET}'
api:
endpoints:
reset_password:
disable: false
regulations:
max_retries: 3
find_time: 120
ban_time: 300

View File

@@ -0,0 +1,10 @@
---
# Authelia users database
# This is a simple file-based user database for testing
users:
admin:
displayname: "Administrator"
password: "$argon2id$v=19$m=65536,t=3,p=4$abcdefghijklmnopqrstuvwx$abcdefghijklmnopqrstuvwxabcdefghijklmnopqrstuvwx" # Dummy hash for 'password'
email: admin@example.com
groups: []