mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
NM-212: IP Detection Interval (#3810)
* feat(go): add ip detection interval setting; * feat(go): ensure ip detection interval is greater than 15s;
This commit is contained in:
+14
-12
@@ -31,18 +31,20 @@ type ServerSettings struct {
|
||||
JwtValidityDuration int `json:"jwt_validity_duration"`
|
||||
// JwtValidityDurationClients is the validity duration of auth tokens for
|
||||
// users on the clients (NetDesk).
|
||||
JwtValidityDurationClients int `json:"jwt_validity_duration_clients"`
|
||||
MFAEnforced bool `json:"mfa_enforced"`
|
||||
RacRestrictToSingleNetwork bool `json:"rac_restrict_to_single_network"`
|
||||
EndpointDetection bool `json:"endpoint_detection"`
|
||||
AllowedEmailDomains string `json:"allowed_email_domains"`
|
||||
EmailSenderAddr string `json:"email_sender_addr"`
|
||||
EmailSenderUser string `json:"email_sender_user"`
|
||||
EmailSenderPassword string `json:"email_sender_password"`
|
||||
SmtpHost string `json:"smtp_host"`
|
||||
SmtpPort int `json:"smtp_port"`
|
||||
MetricInterval string `json:"metric_interval"`
|
||||
MetricsPort int `json:"metrics_port"`
|
||||
JwtValidityDurationClients int `json:"jwt_validity_duration_clients"`
|
||||
MFAEnforced bool `json:"mfa_enforced"`
|
||||
RacRestrictToSingleNetwork bool `json:"rac_restrict_to_single_network"`
|
||||
EndpointDetection bool `json:"endpoint_detection"`
|
||||
AllowedEmailDomains string `json:"allowed_email_domains"`
|
||||
EmailSenderAddr string `json:"email_sender_addr"`
|
||||
EmailSenderUser string `json:"email_sender_user"`
|
||||
EmailSenderPassword string `json:"email_sender_password"`
|
||||
SmtpHost string `json:"smtp_host"`
|
||||
SmtpPort int `json:"smtp_port"`
|
||||
MetricInterval string `json:"metric_interval"`
|
||||
MetricsPort int `json:"metrics_port"`
|
||||
// IPDetectionInterval is the interval (in seconds) at which devices check for changes in public ip.
|
||||
IPDetectionInterval int `json:"ip_detection_interval"`
|
||||
ManageDNS bool `json:"manage_dns"`
|
||||
DefaultDomain string `json:"default_domain"`
|
||||
Stun bool `json:"stun"`
|
||||
|
||||
@@ -319,6 +319,7 @@ type ServerConfig struct {
|
||||
TrafficKey []byte `yaml:"traffickey"`
|
||||
MetricInterval string `yaml:"metric_interval"`
|
||||
MetricsPort int `yaml:"metrics_port"`
|
||||
IPDetectionInterval int `yaml:"ip_detection_interval"`
|
||||
ManageDNS bool `yaml:"manage_dns"`
|
||||
Stun bool `yaml:"stun"`
|
||||
StunServers string `yaml:"stun_servers"`
|
||||
|
||||
Reference in New Issue
Block a user