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 17901f3 + 20be0da commit 8e89a80Copy full SHA for 8e89a80
1 file changed
nginx/nginx.conf
@@ -178,13 +178,13 @@ http {
178
XMLHttpRequest 1;
179
}
180
181
- ######## NPP API RATE LIMIT ########
+ ######## NPP REST API RATE LIMIT ########
182
183
# Limits requests to the NPP cache API endpoint.
184
# Only active for matching URIs; all other requests use an empty key
185
# which disables rate limiting entirely for non-NPP traffic.
186
map $request_uri $nppp_limit_key {
187
- ~^/wp-json/nppp_nginx_cache/ $binary_remote_addr;
+ ~^/wp-json/nppp_nginx_cache/v2/(purge|preload)(\?.*)?$ $binary_remote_addr;
188
default "";
189
190
limit_req_zone $nppp_limit_key zone=nppp_api:10m rate=10r/m;
0 commit comments