I'd like to use
location /images/ {
try_files $uri @generateImage;
}
location @generateImage {
# pass to backend php-fpm
}
for image generation. But it in this case I have to take care of php-fpm load at the first generation of some image (we have huge amount of requests, it's some sort of banner exchange) . Is it way to configure nginx to wait processing of the first php-fpm call to the same location?