diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf index 0010c45a..2722083a 100644 --- a/deploy/nginx/nginx.conf +++ b/deploy/nginx/nginx.conf @@ -36,8 +36,6 @@ http { set_real_ip_from 172.64.0.0/13; set_real_ip_from 131.0.72.0/22; - limit_req_zone $binary_remote_addr zone=ip_limit:10m rate=3r/s; - # Log format to include the real IP address log_format custom '[$time_local] ' '$remote_addr:$server_port $remote_user ' @@ -62,21 +60,12 @@ http { } location / { - limit_req zone=ip_limit burst=6 nodelay; proxy_pass http://map_web_server:8080; # Replace with the IP or container name proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } - - error_page 429 = /rate-limit-error.html; - - location = /rate-limit-error.html { - internal; - default_type text/html; - return 429 "
Please slow down.
"; - } } # Jaam API server server {