Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 196058b

Browse files
committed
fix: nginx delay
Signed-off-by: Sahil Yeole <[email protected]>
1 parent 6f638c7 commit 196058b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nginx/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ http {
2020
resolver 8.8.8.8 valid=100s ipv6=off;
2121
listen 3000;
2222
location / {
23-
echo_sleep 0.4; # Delay each request by 4ms
23+
# Delay each request by 4ms
24+
access_by_lua_block { ngx.sleep(0.004) }
2425
proxy_set_header Host $proxy_host;
2526
proxy_ssl_verify off;
2627
proxy_ssl_server_name on;

0 commit comments

Comments
 (0)