diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index c55324ea7..8b6aad0e5 100644 --- a/model/config.go +++ b/model/config.go @@ -182,6 +182,7 @@ type ServiceSettings struct { SessionLengthMobileInDays *int SessionLengthSSOInDays *int SessionCacheInMinutes *int + SessionIdleTimeoutInMinutes *int WebsocketSecurePort *int WebsocketPort *int WebserverMode *string @@ -1155,6 +1156,11 @@ func (o *Config) SetDefaults() { *o.ServiceSettings.SessionCacheInMinutes = 10 } + if o.ServiceSettings.SessionIdleTimeoutInMinutes == nil { + o.ServiceSettings.SessionIdleTimeoutInMinutes = new(int) + *o.ServiceSettings.SessionIdleTimeoutInMinutes = 0 + } + if o.ServiceSettings.EnableCommands == nil { o.ServiceSettings.EnableCommands = new(bool) *o.ServiceSettings.EnableCommands = false |