mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-02-03 05:44:59 +01:00
Merge pull request #2048 from shalzz/patch-2
dendrite: fix user-registration command
This commit is contained in:
commit
580899384c
@ -83,7 +83,7 @@ matrix_dendrite_rate_limiting_threshold: 5
|
|||||||
matrix_dendrite_rate_limiting_cooloff_ms: 500
|
matrix_dendrite_rate_limiting_cooloff_ms: 500
|
||||||
|
|
||||||
# Controls whether people with access to the homeserver can register by themselves.
|
# Controls whether people with access to the homeserver can register by themselves.
|
||||||
matrix_dendrite_registration_disabled: false
|
matrix_dendrite_registration_disabled: true
|
||||||
|
|
||||||
# reCAPTCHA API for validating registration attempts
|
# reCAPTCHA API for validating registration attempts
|
||||||
matrix_dendrite_enable_registration_captcha: false
|
matrix_dendrite_enable_registration_captcha: false
|
||||||
|
@ -2,11 +2,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ $# -ne 2 ]; then
|
if [ $# -ne 2 ]; then
|
||||||
echo "Usage: "$0" <username> <password>"
|
echo "Usage: "$0" <username> <password> <admin access: 0 or 1>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
user=$1
|
user=$1
|
||||||
password=$2
|
password=$2
|
||||||
|
admin=$3
|
||||||
|
|
||||||
docker exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password"
|
if [ "$admin" -eq "1" ]; then
|
||||||
|
docker exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -admin -url http://localhost:{{ matrix_dendrite_http_bind_port }}
|
||||||
|
else
|
||||||
|
docker exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -url http://localhost:{{ matrix_dendrite_http_bind_port }}
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user