Files
kaizoku/deploy/coreplay-security-http.conf

13 lines
586 B
Plaintext

# Include ONCE in nginx's http context (NPM: /data/nginx/custom/http_top.conf).
# Empty keys bypass throttling; ordinary page/API polling is unaffected.
map "$request_method:$uri" $coreplay_login_client {
default "";
"POST:/pwatcher/api/auth/login" $binary_remote_addr;
"POST:/api/auth/login" $binary_remote_addr;
"POST:/cbzcleaner/login" $binary_remote_addr;
"POST:/login" $binary_remote_addr;
"POST:/kaizoku/auth/login" $binary_remote_addr;
"POST:/auth/login" $binary_remote_addr;
}
limit_req_zone $coreplay_login_client zone=coreplay_login:10m rate=5r/m;