|
@@ -62,7 +62,6 @@ func GetServerSettingsFromEnv() (s models.ServerSettings) {
|
|
Telemetry: servercfg.Telemetry(),
|
|
Telemetry: servercfg.Telemetry(),
|
|
BasicAuth: servercfg.IsBasicAuthEnabled(),
|
|
BasicAuth: servercfg.IsBasicAuthEnabled(),
|
|
JwtValidityDuration: servercfg.GetJwtValidityDurationFromEnv() / 60,
|
|
JwtValidityDuration: servercfg.GetJwtValidityDurationFromEnv() / 60,
|
|
- RacAutoDisable: servercfg.GetRacAutoDisable(),
|
|
|
|
RacRestrictToSingleNetwork: servercfg.GetRacRestrictToSingleNetwork(),
|
|
RacRestrictToSingleNetwork: servercfg.GetRacRestrictToSingleNetwork(),
|
|
EndpointDetection: servercfg.IsEndpointDetectionEnabled(),
|
|
EndpointDetection: servercfg.IsEndpointDetectionEnabled(),
|
|
AllowedEmailDomains: servercfg.GetAllowedEmailDomains(),
|
|
AllowedEmailDomains: servercfg.GetAllowedEmailDomains(),
|
|
@@ -140,7 +139,6 @@ func GetServerConfig() config.ServerConfig {
|
|
cfg.IsPro = "yes"
|
|
cfg.IsPro = "yes"
|
|
}
|
|
}
|
|
cfg.JwtValidityDuration = time.Duration(settings.JwtValidityDuration) * time.Minute
|
|
cfg.JwtValidityDuration = time.Duration(settings.JwtValidityDuration) * time.Minute
|
|
- cfg.RacAutoDisable = settings.RacAutoDisable
|
|
|
|
cfg.RacRestrictToSingleNetwork = settings.RacRestrictToSingleNetwork
|
|
cfg.RacRestrictToSingleNetwork = settings.RacRestrictToSingleNetwork
|
|
cfg.MetricInterval = settings.MetricInterval
|
|
cfg.MetricInterval = settings.MetricInterval
|
|
cfg.ManageDNS = settings.ManageDNS
|
|
cfg.ManageDNS = settings.ManageDNS
|
|
@@ -206,11 +204,6 @@ func GetJwtValidityDuration() time.Duration {
|
|
return GetServerConfig().JwtValidityDuration
|
|
return GetServerConfig().JwtValidityDuration
|
|
}
|
|
}
|
|
|
|
|
|
-// GetRacAutoDisable - returns whether the feature to autodisable RAC is enabled
|
|
|
|
-func GetRacAutoDisable() bool {
|
|
|
|
- return GetServerSettings().RacAutoDisable
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// GetRacRestrictToSingleNetwork - returns whether the feature to allow simultaneous network connections via RAC is enabled
|
|
// GetRacRestrictToSingleNetwork - returns whether the feature to allow simultaneous network connections via RAC is enabled
|
|
func GetRacRestrictToSingleNetwork() bool {
|
|
func GetRacRestrictToSingleNetwork() bool {
|
|
return GetServerSettings().RacRestrictToSingleNetwork
|
|
return GetServerSettings().RacRestrictToSingleNetwork
|