diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-12 15:58:52 +0100 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-12 15:58:52 +0100 |
commit | bcc1d34d355d0385576f8007853e83460e52aab7 (patch) | |
tree | 2ee377fc63d589aa346be7dff4b3dd4e4b563d59 /demo/start.sh | |
parent | Simplify LoginHander and AuthHandler (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-bcc1d34d355d0385576f8007853e83460e52aab7.tar.xz |
Merge branch 'develop' into auth
Diffstat (limited to 'demo/start.sh')
-rwxr-xr-x | demo/start.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/demo/start.sh b/demo/start.sh index b9cc14b9d2..b5dea5e176 100755 --- a/demo/start.sh +++ b/demo/start.sh @@ -8,14 +8,6 @@ cd "$DIR/.." mkdir -p demo/etc -# Check the --no-rate-limit param -PARAMS="" -if [ $# -eq 1 ]; then - if [ $1 = "--no-rate-limit" ]; then - PARAMS="--rc-messages-per-second 1000 --rc-message-burst-count 1000" - fi -fi - export PYTHONPATH=$(readlink -f $(pwd)) @@ -35,6 +27,15 @@ for port in 8080 8081 8082; do -H "localhost:$https_port" \ --config-path "$DIR/etc/$port.config" \ + # Check script parameters + if [ $# -eq 1 ]; then + if [ $1 = "--no-rate-limit" ]; then + # Set high limits in config file to disable rate limiting + perl -p -i -e 's/rc_messages_per_second.*/rc_messages_per_second: 1000/g' $DIR/etc/$port.config + perl -p -i -e 's/rc_message_burst_count.*/rc_message_burst_count: 1000/g' $DIR/etc/$port.config + fi + fi + python -m synapse.app.homeserver \ --config-path "$DIR/etc/$port.config" \ -D \ |