From 196058bb3d40e67b3c658138d4b315e73b177ade Mon Sep 17 00:00:00 2001 From: Sahil Yeole Date: Mon, 15 Jul 2024 09:58:28 +0530 Subject: [PATCH] fix: nginx delay Signed-off-by: Sahil Yeole --- nginx/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 1f586b81..eb1aef0a 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -20,7 +20,8 @@ http { resolver 8.8.8.8 valid=100s ipv6=off; listen 3000; location / { - echo_sleep 0.4; # Delay each request by 4ms + # Delay each request by 4ms + access_by_lua_block { ngx.sleep(0.004) } proxy_set_header Host $proxy_host; proxy_ssl_verify off; proxy_ssl_server_name on;