From 8aa133aab10c0c8832d53b12698e8e7ad0f671d7 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Sun, 7 Apr 2024 14:31:38 -0300 Subject: [PATCH] feat: nginx with limit_conn_zone 10m change place --- nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index b4fcf78b..b55109ef 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -12,6 +12,7 @@ map $http_origin $allow_origin { proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m max_size=1g inactive=60m use_temp_path=off; +limit_conn_zone $binary_remote_addr zone=addr:10m; {{ range $port_map := .PROXY_PORT_MAP | split " " }} {{ $port_map_list := $port_map | split ":" }} @@ -42,7 +43,6 @@ server { keepalive_requests 500; proxy_read_timeout 3600; limit_conn addr 1000; - limit_conn_zone $binary_remote_addr zone=addr:10m; {{ end }}