Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
73f0ca78
Verified
Commit
73f0ca78
authored
Jul 12, 2021
by
Jelle van der Waa
🚧
Browse files
Add rate limit to fluxbb's php-fpm
parent
8bf73311
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/fluxbb/templates/nginx.conf.j2
View file @
73f0ca78
...
...
@@ -19,6 +19,7 @@ server {
# limiter in the location directive below
limit_req_zone $binary_remote_addr zone=rsslimit:8m rate=1r/m;
limit_req_zone $binary_remote_addr zone=searchlimit:10m rate=1r/s;
limit_req_zone $binary_remote_addr zone=bbslimit:10m rate=10r/s;
limit_req_status 429;
server {
...
...
@@ -101,5 +102,7 @@ server {
try_files $uri =404;
fastcgi_param HTTPS on;
include fastcgi_params;
limit_req zone=bbslimit burst=10 nodelay;
}
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment