mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-26 05:56:36 +08:00
parent
9609d87a87
commit
14d2d3cefb
4 changed files with 1 additions and 14 deletions
|
|
@ -102,7 +102,6 @@ type ServerConfig struct {
|
|||
MetricInterval string `yaml:"metric_interval"`
|
||||
ManageDNS bool `yaml:"manage_dns"`
|
||||
DefaultDomain string `yaml:"default_domain"`
|
||||
StunStatus bool `yaml:"stun_status"`
|
||||
}
|
||||
|
||||
// SQLConfig - Generic SQL Config
|
||||
|
|
|
|||
|
|
@ -268,7 +268,6 @@ type ServerConfig struct {
|
|||
MetricInterval string `yaml:"metric_interval"`
|
||||
ManageDNS bool `yaml:"manage_dns"`
|
||||
DefaultDomain string `yaml:"default_domain"`
|
||||
StunStatus bool `yaml:"stun_status"`
|
||||
}
|
||||
|
||||
// User.NameInCharset - returns if name is in charset below or not
|
||||
|
|
|
|||
|
|
@ -92,5 +92,4 @@ PEER_UPDATE_BATCH=true
|
|||
PEER_UPDATE_BATCH_SIZE=50
|
||||
# default domain for internal DNS lookup
|
||||
DEFAULT_DOMAIN=netmaker.hosted
|
||||
# config to turn off Stun
|
||||
STUN_STATUS=true
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ func GetServerConfig() config.ServerConfig {
|
|||
cfg.MetricInterval = GetMetricInterval()
|
||||
cfg.ManageDNS = GetManageDNS()
|
||||
cfg.DefaultDomain = GetDefaultDomain()
|
||||
cfg.StunStatus = GetSTUNStatus()
|
||||
return cfg
|
||||
}
|
||||
|
||||
|
|
@ -142,7 +141,6 @@ func GetServerInfo() models.ServerConfig {
|
|||
cfg.MetricInterval = GetMetricInterval()
|
||||
cfg.ManageDNS = GetManageDNS()
|
||||
cfg.DefaultDomain = GetDefaultDomain()
|
||||
cfg.StunStatus = GetSTUNStatus()
|
||||
return cfg
|
||||
}
|
||||
|
||||
|
|
@ -848,14 +846,6 @@ func GetAllowedEmailDomains() string {
|
|||
return allowedDomains
|
||||
}
|
||||
|
||||
func GetSTUNStatus() bool {
|
||||
s := true
|
||||
if os.Getenv("STUN_STATUS") != "" {
|
||||
s = os.Getenv("STUN_STATUS") == "true"
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
// GetNmBaseDomain - fetches nm base domain
|
||||
func GetNmBaseDomain() string {
|
||||
return os.Getenv("NM_DOMAIN")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue