Skip to content

Commit

Permalink
rf: increase api rate limit default
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Nov 12, 2024
1 parent 3f477c2 commit aa53cc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin-dashboard/rootfs/defaults/dashboard.conf
Original file line number Diff line number Diff line change
@@ -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 _;

Expand Down
2 changes: 1 addition & 1 deletion admin-dashboard/rootfs/defaults/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

##
Expand Down

0 comments on commit aa53cc0

Please sign in to comment.