PLT-7633 (E20) Add session idle timeout config setting (#7524)
* Add session idle timeout config setting * Modify config setting name to SessionIdleTimeoutInMinutes * Small re-org of if statement * Merge with latest master
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
8d662105d3
Коммит
15b361094a
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user