zoraxy using Amazon Route 53 #369
Unanswered
achimwessling
asked this question in
Q&A
Replies: 1 comment
-
@achimwessling I didn't use Route 53 so I am not sure about that, but I guess you can try removing the following field in the Remove this in {
"Title": "MaxRetries",
"Datatype": "int"
}, It also might be a front-end problem. You can try modify the form render and submission function as follows and see if this is fixed. for (const [key, datatype] of Object.entries(data)) {
if (datatype == "int"){
let defaultValue = 10;
if (key == "HTTPTimeout"){
defaultValue = 300;
}
$("#dnsProviderAPIFields").append(`<div class="ui fluid labeled dnsConfigField input typeint" key="${key}" style="margin-top: 0.2em;">
<div class="ui basic blue label" style="font-weight: 300;">
${key}
</div>
<input type="number" value="${defaultValue}">
</div>`);
}else if (datatype == "bool"){ and replace the function readDnsCredentials(){
let dnsCredentials = {};
$(".dnsConfigField").each(function(){
let thisKey = $(this).attr("key");
let value = "";
if ($(this).hasClass("checkbox")){
//Boolean option
let checked = $(this).find("input")[0].checked;
dnsCredentials[thisKey] = checked;
}else if ($(this).hasClass("typeint")){
//Int options
let value = $(this).find("input").val();
dnsCredentials[thisKey] = parseInt(value);
}else{
//String options
let value = $(this).find("input").val().trim();
dnsCredentials[thisKey] = value;
}
});
return dnsCredentials;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I setup zoraxy as a docker container with docker compose. It seams to work fine. I can login and do basic configuration. But I get an error when I try to configure the DNS challenge for my Route53 domain.
First I get the information "Certifikate DNS Credentials updated successfully", but it's followed by "Json: cannot unmarshal string into Go struct field Config.MaxRetries of type int". Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions