Skip to content

Commit

Permalink
update default interval limits
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Apr 17, 2024
1 parent f9fc24d commit 47a1bd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions stats/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ services:
- STATS__SERVER__HTTP__ENABLED=true
- STATS__SERVER__HTTP__ADDR=0.0.0.0:8050
- STATS__SERVER__HTTP__MAX_BODY_SIZE=2097152
- STATS__LIMITS__REQUEST_INTERVAL_LIMIT_DAYS=36500
- RUST_BACKTRACE=1
ports:
- 8080:8050
3 changes: 2 additions & 1 deletion stats/stats-server/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ pub struct LimitsSettings {
impl Default for LimitsSettings {
fn default() -> Self {
Self {
request_interval_limit_days: u32::MAX,
// ~500 years seems reasonable
request_interval_limit_days: 182500,
}
}
}
Expand Down

0 comments on commit 47a1bd0

Please sign in to comment.