- Some text explaining how this works
+ For more information on the supported DNS Providers and their attirbutes look here!
+
+
+ These credentials will be stored as plaintext in the database and in environment variables!
+
@@ -374,6 +507,27 @@
}
})
+ $("input[name=dnsProvider]").on('change', function() {
+ // This currently only contains some exmaple prefills. Could be extended by a person with patience from here: https://go-acme.github.io/lego/dns/
+ // Some webscraping could be done to get the list of variables from the lego documentation
+ switch(this.value){
+ case "edgedns":
+ $("#dnsCredentials").val("AKAMAI_ACCESS_TOKEN=\nAKAMAI_CLIENT_SECRET=\nAKAMAI_CLIENT_TOKEN=\nAKAMAI_EDGERC=\nAKAMAI_EDGERC_SECTION=\nAKAMAI_HOST=");
+ break;
+ case "alidns":
+ $("#dnsCredentials").val("ALICLOUD_ACCESS_KEY=\nALICLOUD_RAM_ROLE=\nALICLOUD_SECRET_KEY=\nALICLOUD_SECURITY_TOKEN=");
+ break;
+ case "allinkl":
+ $("#dnsCredentials").val("ALL_INKL_LOGIN=\nALL_INKL_PASSWORD=");
+ break;
+ case "dynu":
+ $("#dnsCredentials").val("DYNU_API_KEY=");
+ break;
+ default:
+ $("#dnsCredentials").val('See here for Variable List:\nhttps://go-acme.github.io/lego/dns/'+this.value+'\nSuch as:\n'+this.value.toUpperCase()+'_YYYY=XXX');
+ }
+ })
+
// Get filename form domains and input
function getFilename() {
var domains = $("#domainsInput").val();
@@ -501,9 +655,9 @@
// Show error message
parent.msgbox(response.error, false, 12000);
} else {
- console.log("Certificate DNS updated successfully");
+ console.log("Certificate DNS Credentials updated successfully");
// Show success message
- parent.msgbox("Certificate DNS updated successfully");
+ parent.msgbox("Certificate DNS Credentials updated successfully");
}
},
error: function(error) {
@@ -538,13 +692,6 @@
var dns = $("#useDnsChallenge")[0].checked;
- var dnsProvider = "";
- var dnsCredentials = "";
- if (dns) {
- dnsProvider = $("#dnsProvider").dropdown("get value");
- dnsCredentials = $("#dnsCredentials").val();
- }
-
var skipTLSValue = $("#skipTLSCheckbox")[0].checked;
$.ajax({