Skip to content

Commit

Permalink
nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
v00g100skr committed Jan 9, 2025
1 parent 22fe96f commit 0d127bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ http {
proxy_buffers 4 128k;
proxy_busy_buffers_size 256k;

limit_req_zone $remote_addr zone=ip_limit:10m rate=3r/s;

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
Expand All @@ -38,6 +36,8 @@ 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 '
Expand Down

0 comments on commit 0d127bb

Please sign in to comment.