Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
c1ddbbde
Unverified
Commit
c1ddbbde
authored
3 years ago
by
manuroe
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Handle all new rate limits in demo scripts (#9858)
parent
177dae27
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/9858.misc
+1
-0
1 addition, 0 deletions
changelog.d/9858.misc
demo/start.sh
+42
-12
42 additions, 12 deletions
demo/start.sh
with
43 additions
and
12 deletions
changelog.d/9858.misc
0 → 100644
+
1
−
0
View file @
c1ddbbde
Handle recently added rate limits correctly when using `--no-rate-limit` with the demo scripts.
This diff is collapsed.
Click to expand it.
demo/start.sh
+
42
−
12
View file @
c1ddbbde
...
@@ -96,18 +96,48 @@ for port in 8080 8081 8082; do
...
@@ -96,18 +96,48 @@ for port in 8080 8081 8082; do
# Check script parameters
# Check script parameters
if
[
$#
-eq
1
]
;
then
if
[
$#
-eq
1
]
;
then
if
[
$1
=
"--no-rate-limit"
]
;
then
if
[
$1
=
"--no-rate-limit"
]
;
then
# messages rate limit
echo
'rc_messages_per_second: 1000'
>>
$DIR
/etc/
$port
.config
# Disable any rate limiting
echo
'rc_message_burst_count: 1000'
>>
$DIR
/etc/
$port
.config
ratelimiting
=
$(
cat
<<-
RC
rc_message:
# registration rate limit
per_second: 1000
printf
'rc_registration:\n per_second: 1000\n burst_count: 1000\n'
>>
$DIR
/etc/
$port
.config
burst_count: 1000
rc_registration:
# login rate limit
per_second: 1000
echo
'rc_login:'
>>
$DIR
/etc/
$port
.config
burst_count: 1000
printf
' address:\n per_second: 1000\n burst_count: 1000\n'
>>
$DIR
/etc/
$port
.config
rc_login:
printf
' account:\n per_second: 1000\n burst_count: 1000\n'
>>
$DIR
/etc/
$port
.config
address:
printf
' failed_attempts:\n per_second: 1000\n burst_count: 1000\n'
>>
$DIR
/etc/
$port
.config
per_second: 1000
burst_count: 1000
account:
per_second: 1000
burst_count: 1000
failed_attempts:
per_second: 1000
burst_count: 1000
rc_admin_redaction:
per_second: 1000
burst_count: 1000
rc_joins:
local:
per_second: 1000
burst_count: 1000
remote:
per_second: 1000
burst_count: 1000
rc_3pid_validation:
per_second: 1000
burst_count: 1000
rc_invites:
per_room:
per_second: 1000
burst_count: 1000
per_user:
per_second: 1000
burst_count: 1000
RC
)
echo
"
${
ratelimiting
}
"
>>
$DIR
/etc/
$port
.config
fi
fi
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment