diff --git a/server/nginx.conf b/server/nginx.conf index 1dcd017..2fcfd6a 100644 --- a/server/nginx.conf +++ b/server/nginx.conf @@ -1,3 +1,5 @@ +limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s; + upstream app_server { server 127.0.0.1:12000 fail_timeout=0; } @@ -73,6 +75,9 @@ server { } location / { + + limit_req zone=login burst=5; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off;