Parcourir la source

Further lowered to 2sec

Toby Chui il y a 4 mois
Parent
commit
6f98b64344
2 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 1 1
      mod/acme/acme_dns.go
  2. 5 5
      web/snippet/acme.html

+ 1 - 1
mod/acme/acme_dns.go

@@ -18,7 +18,7 @@ func GetDnsChallengeProviderByName(dnsProvider string, dnsCredentials string, pp
 	}
 
 	//Clear the PollingInterval and PropagationTimeout field and conert to int
-	userDefinedPollingInterval := 5
+	userDefinedPollingInterval := 2
 	if dnsCredentialsMap["PollingInterval"] != nil {
 		userDefinedPollingIntervalRaw := dnsCredentialsMap["PollingInterval"].(string)
 		delete(dnsCredentialsMap, "PollingInterval")

+ 5 - 5
web/snippet/acme.html

@@ -449,14 +449,14 @@
               <label>${key}</label>
             </div>`);
           }else if (datatype == "time.Duration"){
-            let defaultIntValue = 300;
-            let defaultMinValue = 60;
+            let defaultIntValue = 120;
+            let defaultMinValue = 30;
             if (key == "PollingInterval"){
-              defaultIntValue = 5;
+              defaultIntValue = 2;
               defaultMinValue = 1;
             }else if (key == "PropagationTimeout"){
-              defaultIntValue = 300;
-              defaultMinValue = 60;
+              defaultIntValue = 120;
+              defaultMinValue = 30;
             }
             optionalFieldsHTML += (`<div class="ui fluid labeled dnsConfigField small input" key="${key}" style="margin-top: 0.2em;">
               <div class="ui basic blue label" style="font-weight: 300;">