We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 86fb390 + 04dcfd9 commit 721f63dCopy full SHA for 721f63d
1 file changed
nginx/default.conf
@@ -121,6 +121,11 @@ server {
121
fastcgi_index index.php;
122
fastcgi_pass wordpress-fpm:9001;
123
include /etc/nginx/fastcgi_params;
124
+
125
+ limit_req zone=nppp_api burst=5 nodelay; # Apply rate limit; allow burst of 5 with no queuing delay
126
+ limit_req_status 429; # Return 429 Too Many Requests instead of default 503
127
+ limit_req_log_level warn; # Log rate limit hits as warnings, not errors
128
129
fastcgi_cache_bypass $skip_cache;
130
fastcgi_no_cache $skip_cache;
131
fastcgi_cache NPP;
0 commit comments