Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Added a param (--no-rate-limit) to demo/start.sh to disable the HS ra…
Browse files Browse the repository at this point in the history
…te limit
  • Loading branch information
manuroe committed Oct 20, 2014
1 parent 4ae0844 commit 9e57ed2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions demo/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ fi
find "$DIR" -name "*.log" -delete
find "$DIR" -name "*.db" -delete

rm -rf $DIR/etc
11 changes: 10 additions & 1 deletion demo/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ 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

for port in 8080 8081 8082; do
echo "Starting server on port $port... "

Expand All @@ -23,7 +31,8 @@ for port in 8080 8081 8082; do
-d "$DIR/$port.db" \
-D --pid-file "$DIR/$port.pid" \
--manhole $((port + 1000)) \
--tls-dh-params-path "demo/demo.tls.dh"
--tls-dh-params-path "demo/demo.tls.dh" \
$PARAMS

python -m synapse.app.homeserver \
--config-path "demo/etc/$port.config" \
Expand Down

0 comments on commit 9e57ed2

Please sign in to comment.