diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-31 19:16:23 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-31 19:16:23 +0200 |
commit | ec75d2d0e9601dcf32387120ca67135ac7e7f472 (patch) | |
tree | 146484ece089a8293dc30505b0c2380374e5fac7 /autotests/adjust-config.sh | |
parent | 945b1ab33c92b7b13e2c6b6ebc1f56c5caee0f79 (diff) | |
parent | a7c43995c3a47bbbac8d862f69f9229eb39f4ed6 (diff) | |
download | libquotient-ec75d2d0e9601dcf32387120ca67135ac7e7f472.tar.gz libquotient-ec75d2d0e9601dcf32387120ca67135ac7e7f472.zip |
Merge branch 'dev' into update-api-update
Diffstat (limited to 'autotests/adjust-config.sh')
-rw-r--r-- | autotests/adjust-config.sh | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/autotests/adjust-config.sh b/autotests/adjust-config.sh new file mode 100644 index 00000000..68ea58ab --- /dev/null +++ b/autotests/adjust-config.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +CMD="" + +$CMD perl -pi -w -e \ + 's/rc_messages_per_second.*/rc_messages_per_second: 1000/g;' homeserver.yaml +$CMD perl -pi -w -e \ + 's/rc_message_burst_count.*/rc_message_burst_count: 10000/g;' homeserver.yaml + +( +cat <<HEREDOC +rc_message: + per_second: 10000 + burst_count: 100000 +rc_registration: + per_second: 10000 + burst_count: 30000 +rc_login: + address: + per_second: 10000 + burst_count: 30000 + account: + per_second: 10000 + burst_count: 30000 + failed_attempts: + per_second: 10000 + burst_count: 30000 +rc_admin_redaction: + per_second: 1000 + burst_count: 5000 +rc_joins: + local: + per_second: 10000 + burst_count: 100000 + remote: + per_second: 10000 + burst_count: 100000 +HEREDOC +) | $CMD tee -a homeserver.yaml + +$CMD perl -pi -w -e \ + 's/^#enable_registration: false/enable_registration: true/g;' homeserver.yaml +$CMD perl -pi -w -e \ + 's/^#enable_registration_without_verification: .+/enable_registration_without_verification: true/g;' homeserver.yaml +$CMD perl -pi -w -e \ + 's/tls: false/tls: true/g;' homeserver.yaml +$CMD perl -pi -w -e \ + 's/#tls_certificate_path:/tls_certificate_path:/g;' homeserver.yaml +$CMD perl -pi -w -e \ + 's/#tls_private_key_path:/tls_private_key_path:/g;' homeserver.yaml + +$CMD openssl req -x509 -newkey rsa:4096 -keyout localhost.tls.key -out localhost.tls.crt -days 365 -subj '/CN=localhost' -nodes + +$CMD chmod 0777 localhost.tls.crt +$CMD chmod 0777 localhost.tls.key |