- 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
30 lines
914 B
YAML
30 lines
914 B
YAML
---
|
|
###############################################################
|
|
# Users Database Template #
|
|
###############################################################
|
|
|
|
# This is a template file - copy to users_database.yml and edit
|
|
# The actual users_database.yml is not tracked in git for security
|
|
|
|
# Generate password hashes using:
|
|
# docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password 'yourpassword'
|
|
|
|
# List of users
|
|
users:
|
|
# Example user - replace with actual users
|
|
valknar:
|
|
displayname: "Valknar"
|
|
password: "$argon2id$v=19$m=65536,t=3,p=4$REPLACE_WITH_ACTUAL_HASH"
|
|
email: valknar@pivoine.art
|
|
groups:
|
|
- admins
|
|
- dev
|
|
|
|
# Add more users as needed:
|
|
# username:
|
|
# displayname: "Full Name"
|
|
# password: "$argon2id$v=19$m=65536,t=3,p=4$HASH_HERE"
|
|
# email: user@pivoine.art
|
|
# groups:
|
|
# - users
|