feat: add Session config section (max_keep for session retention)
This commit is contained in:
@@ -9,6 +9,11 @@ type Config struct {
|
||||
Tools ToolsSection `toml:"tools"`
|
||||
RateLimits RateLimitSection `toml:"rate_limits"`
|
||||
Security SecuritySection `toml:"security"`
|
||||
Session SessionSection `toml:"session"`
|
||||
}
|
||||
|
||||
type SessionSection struct {
|
||||
MaxKeep int `toml:"max_keep"`
|
||||
}
|
||||
|
||||
// SecuritySection configures the secret scanner and firewall.
|
||||
|
||||
@@ -18,5 +18,6 @@ func Defaults() Config {
|
||||
BashTimeout: Duration(30 * time.Second),
|
||||
MaxFileSize: 1 << 20, // 1MB
|
||||
},
|
||||
Session: SessionSection{MaxKeep: 20},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user