diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-03 10:45:50 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-03 10:45:50 +0200 |
| commit | 2de007f9ef8ae2724b9fbe2808ee25cbfe4ca876 (patch) | |
| tree | f91a742d682928ef12eb5a011411c3bb0ef16a02 /internal/config/server.go | |
| parent | 6d50a475114699911f2ebe1376915cd8317f1881 (diff) | |
feat(config): add auth-key CLI and server cache settings
Diffstat (limited to 'internal/config/server.go')
| -rw-r--r-- | internal/config/server.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/config/server.go b/internal/config/server.go index d0986d6..13ebde8 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -74,6 +74,10 @@ type ServerConfig struct { TurboBoostDisable bool `json:",omitempty"` // Enable in-memory auth-key registration and fast reconnect. AuthKeyEnabled bool `json:",omitempty"` + // Auth-key cache entry TTL in seconds. + AuthKeyTTLSeconds int `json:",omitempty"` + // Maximum number of cached auth keys per user. + AuthKeyMaxPerUser int `json:",omitempty"` // Retry interval for glob retries in milliseconds. ReadGlobRetryIntervalMs int `json:",omitempty"` // Retry interval for re-reading in tail/cat loops in milliseconds. @@ -122,6 +126,8 @@ func newDefaultServerConfig() *ServerConfig { }, TurboBoostDisable: false, // Default to false, meaning turbo boost is enabled by default AuthKeyEnabled: true, + AuthKeyTTLSeconds: 86400, + AuthKeyMaxPerUser: 5, ReadGlobRetryIntervalMs: 5000, ReadRetryIntervalMs: 2000, ReadAggregateLineBufferSize: 10000, |
