I have an application server sitting behind nginx, and in some cases (e.g. wrong password), I want to intentionally delay the response by 500ms or more.
Implementing this delay in the application server requires a bit of redesign.
Is it possible to somehow tell nginx, via a header, to delay the response?
(I know about the rate limiting as described https://www.nginx.com/blog/rate-limiting-nginx/, but it seems to have some limitations; e.g. it categorizes by IP address so someone with 1000 proxies could bypass this -- correct me if I'm wrong. I am open to other ideas, of course.)