Skip to content

Commit ab77e11

Browse files
authored
disable rate limiter by default (#2792)
1 parent e598f9c commit ab77e11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/defguard_common/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ pub struct DefGuardConfig {
195195

196196
/// Maximum number of requests per second per client IP before rate limiting kicks in.
197197
/// Set to 0 to disable rate limiting.
198-
#[arg(long, env = "DEFGUARD_RATELIMIT_PERSECOND", default_value_t = 100)]
198+
#[arg(long, env = "DEFGUARD_RATELIMIT_PERSECOND", default_value_t = 0)]
199199
pub rate_limit_per_second: u64,
200200

201201
/// Maximum burst size for the rate limiter (token bucket capacity per client IP).
202202
/// Set to 0 to disable rate limiting.
203-
#[arg(long, env = "DEFGUARD_RATELIMIT_BURST", default_value_t = 1000)]
203+
#[arg(long, env = "DEFGUARD_RATELIMIT_BURST", default_value_t = 0)]
204204
pub rate_limit_burst: u32,
205205
}
206206

0 commit comments

Comments
 (0)