Verified Commit 73f0ca78 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Add rate limit to fluxbb's php-fpm

parent 8bf73311
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment