proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For $remote_addr;
limit_req zone=one burst=200 nodelay;
limit_req_log_level warn;
limit_req_status 429;
map $arg_h:$arg_w:$arg_display:$arg_blur $image_path_file
~^(?<width>\d+):(?<display>(low|thumb)):true$ "/public/tmp/w$width/blurs";
~^(?<height>\d+):(?<display>(low|thumb)):true$ "/public/tmp/h$height/blurs";
~^:(?<width>\d+):(?<display>(low|thumb)):true$ "/public/tmp/w$width/blurs";
map $arg_w:$arg_h:$arg_blur $imgdir {
default "/image";
~^(?<width>\d+):(?<height>\d+)$ "/tmp/w$width/h$height";
~^(?<width>\d+):(?<height>\d+):true$ "/tmp/w$width/h$height/blur";
~^(?<height>\d+):true$ "/tmp/h$height/blur";
~^(?<height>\d+): "/tmp/h$height";
}
.if((value, { req }) => req.body.isAdmin !== true)
Вроде работает =)