diff --git a/docker/nginx-gateway-k8s.conf.template b/docker/nginx-gateway-k8s.conf.template index e7c8c5ee..b26d99b4 100644 --- a/docker/nginx-gateway-k8s.conf.template +++ b/docker/nginx-gateway-k8s.conf.template @@ -6,11 +6,6 @@ proxy_cache_path /var/cache/nginx/pods levels=1:2 keys_zone=pods:2m max_size=4m proxy_cache_path /var/cache/nginx/rbac levels=1:2 keys_zone=rbac:256k max_size=3m inactive=60m use_temp_path=off; proxy_cache_path /var/cache/nginx/rbac2 levels=1:2 keys_zone=rbac2:256k max_size=3m inactive=60m use_temp_path=off; -# Setup a connection zone to control number of connections -limit_conn_zone $binary_remote_addr zone=limitconnbyaddr:20m; -# Return status code for too many connections -limit_conn_status 429; - map $uri $new { / /online/; /online /online/; @@ -30,9 +25,6 @@ server { gzip on; root /usr/share/nginx/html/; - # Limit a single IP to 75 connections - limit_conn limitconnbyaddr 75; - # Limit the keepalive of connections (60s default) keepalive_timeout 60s; diff --git a/docker/nginx-gateway.conf.template b/docker/nginx-gateway.conf.template index 108a16ea..c63002c7 100644 --- a/docker/nginx-gateway.conf.template +++ b/docker/nginx-gateway.conf.template @@ -6,11 +6,6 @@ proxy_cache_path /var/cache/nginx/pods levels=1:2 keys_zone=pods:2m max_size=4m proxy_cache_path /var/cache/nginx/rbac levels=1:2 keys_zone=rbac:256k max_size=3m inactive=60m use_temp_path=off; proxy_cache_path /var/cache/nginx/rbac2 levels=1:2 keys_zone=rbac2:256k max_size=3m inactive=60m use_temp_path=off; -# Setup a connection zone to control number of connections -limit_conn_zone $binary_remote_addr zone=limitconnbyaddr:20m; -# Return status code for too many connections -limit_conn_status 429; - map $uri $new { / /online/; /online /online/; @@ -31,9 +26,6 @@ server { gzip on; root /usr/share/nginx/html/; - # Limit a single IP to 75 connections - limit_conn limitconnbyaddr 75; - # Limit the keepalive of connections (60s default) keepalive_timeout 60s; diff --git a/docker/nginx.conf b/docker/nginx.conf index 6af1a88b..8c64ec6f 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -1,8 +1,3 @@ -# Setup a connection zone to control number of connections -limit_conn_zone $binary_remote_addr zone=limitconnbyaddr:20m; -# Return status code for too many connections -limit_conn_status 429; - map $uri $new { / /online/; } @@ -21,9 +16,6 @@ server { gzip on; root /usr/share/nginx/html/; - # Limit a single IP to 75 connections - limit_conn limitconnbyaddr 75; - # Limit the keepalive of connections (60s default) keepalive_timeout 60s;