refactor: make Authelia user management scalable

- Remove envsubst complexity for password hashes
- Keep users_database.yml only on server (not in git)
- Add users_database.yml to .gitignore
- Update users_database.template.yml with multi-user examples
- Configure Authelia to watch users_database.yml for changes
- Users can now be added/removed by editing the file on server
- Supports unlimited users without code changes
This commit is contained in:
2025-11-15 19:59:17 +01:00
parent 37f1edbd01
commit 94e6656f31
5 changed files with 19 additions and 9 deletions

View File

@@ -128,7 +128,6 @@ envs:
# Authelia SSO
NET_AUTHELIA_IMAGE: authelia/authelia:latest
NET_AUTHELIA_TRAEFIK_HOST: auth.pivoine.art
AUTHELIA_USER_PASSWORD_HASH: "" # Generated via: docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password 'yourpassword'
# AI Stack
AI_TRAEFIK_ENABLED: true
AI_COMPOSE_PROJECT_NAME: ai