feat: add Session config section (max_keep for session retention)

This commit is contained in:
2026-04-05 23:37:10 +02:00
parent 8b489d429a
commit bbd7791428
2 changed files with 6 additions and 0 deletions

View File

@@ -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.

View File

@@ -18,5 +18,6 @@ func Defaults() Config {
BashTimeout: Duration(30 * time.Second),
MaxFileSize: 1 << 20, // 1MB
},
Session: SessionSection{MaxKeep: 20},
}
}