summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-04-19 15:43:41 -0400
committerDaniel Micay <danielmicay@gmail.com>2021-04-19 15:43:41 -0400
commite4fcd76ece62b29011a85710f376d76ad1558775 (patch)
tree713bd4c4039cb1a6b3f122c0060189ec9a4a831c /nginx
parent1a3847e5ebc05896dfa6d088e90050bdad6671fc (diff)
use 429 response code for conn limit
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 5c9be43e..5e6fe6e2 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -38,6 +38,7 @@ http {
http2_recv_timeout 30s;
http2_max_concurrent_streams 32;
+ limit_conn_status 429;
limit_conn_zone $binary_remote_addr zone=addr:10m;
limit_conn addr 256;