We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e598f9c commit ab77e11Copy full SHA for ab77e11
1 file changed
crates/defguard_common/src/config.rs
@@ -195,12 +195,12 @@ pub struct DefGuardConfig {
195
196
/// Maximum number of requests per second per client IP before rate limiting kicks in.
197
/// Set to 0 to disable rate limiting.
198
- #[arg(long, env = "DEFGUARD_RATELIMIT_PERSECOND", default_value_t = 100)]
+ #[arg(long, env = "DEFGUARD_RATELIMIT_PERSECOND", default_value_t = 0)]
199
pub rate_limit_per_second: u64,
200
201
/// Maximum burst size for the rate limiter (token bucket capacity per client IP).
202
203
- #[arg(long, env = "DEFGUARD_RATELIMIT_BURST", default_value_t = 1000)]
+ #[arg(long, env = "DEFGUARD_RATELIMIT_BURST", default_value_t = 0)]
204
pub rate_limit_burst: u32,
205
}
206
0 commit comments