From aa53cc0142f76e5b47f8b8926f017516522fc97d Mon Sep 17 00:00:00 2001 From: Debendra Oli Date: Tue, 12 Nov 2024 14:35:16 +0545 Subject: [PATCH] rf: increase api rate limit default --- admin-dashboard/rootfs/defaults/dashboard.conf | 2 +- admin-dashboard/rootfs/defaults/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin-dashboard/rootfs/defaults/dashboard.conf b/admin-dashboard/rootfs/defaults/dashboard.conf index 50caa28..a3140c9 100644 --- a/admin-dashboard/rootfs/defaults/dashboard.conf +++ b/admin-dashboard/rootfs/defaults/dashboard.conf @@ -1,7 +1,7 @@ {{ $CORS_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN := .Env.CORS_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN | default "*" }} {{ $DASHBOARD_PORT := .Env.DASHBOARD_PORT | default "3000" }} {{ $ENABLE_RATE_LIMITING := not .Env.DISABLE_RATE_LIMITING | default "0" | toBool }} -{{ $RATE_LIMIT_BURST := .Env.RATE_LIMIT_BURST | default "20" }} +{{ $RATE_LIMIT_BURST := .Env.RATE_LIMIT_BURST | default "25" }} server_name _; diff --git a/admin-dashboard/rootfs/defaults/nginx.conf b/admin-dashboard/rootfs/defaults/nginx.conf index 75aa1a7..246ee78 100644 --- a/admin-dashboard/rootfs/defaults/nginx.conf +++ b/admin-dashboard/rootfs/defaults/nginx.conf @@ -63,7 +63,7 @@ http { # Rate Limiting {{ if not .Env.DISABLE_RATE_LIMITING | default "0" | toBool }} - limit_req_zone $binary_remote_addr zone=api:10m rate={{ .Env.RATE_LIMIT_RATE | default "10r/s" }}; + limit_req_zone $binary_remote_addr zone=api:10m rate={{ .Env.RATE_LIMIT_RATE | default "25r/s" }}; {{ end }} ##