dendrite: documentation on how to create users

This commit is contained in:
Jörg Thalheim 2023-07-13 18:58:42 +02:00
parent cd124512bf
commit 49be025fd2
2 changed files with 10 additions and 5 deletions

View File

@ -28,6 +28,11 @@ in
# $ nix-shell -p dendrite --run 'generate-keys --private-key /tmp/key'
sops.secrets.matrix-server-key = { };
# $ echo "REGISTRATION_SHARED_SECRET=$(openssl rand -base64 32)"
# To create a user:
# $ password=$(nix run "nixpkgs#xkcdpass" -- -n 3 -d-)
# $ shared_secret=$(sops -d --extract '["registration-secret"]' ./secrets.yaml| sed s/REGISTRATION_SHARED_SECRET=//)
# $ nix shell "nixpkgs#matrix-synapse" -c register_new_matrix_user --password "${password}" --shared-secret "${shared_secret}" "https://matrix.clan.lol:443"
sops.secrets.registration-secret = { };
services.dendrite = {

File diff suppressed because one or more lines are too long