koying/ha-addons

Problems saving config

bjorndegroot opened this issue · 1 comments

Hi Folks,

I'm trying to configure the Dynu DNS Add-on as replacer of DuckDNS. I recently noticed the DuckDNS is really unstable and is really often unavailable.

When when i'm trying to configure I get an error that there is incorrect configuration when trying to save it. It saids that the option 'keyfile' is missing, but it's in my config.

My config is as follows, can anybody help me out with this?:

lets_encrypt:
accept_terms: true
certfile: fullchain.pem
keyfile: privkey.pem
token: MYOWNTOKEN
domains:

  • mydomain.freeddns.org
    aliases: []
    seconds: 300
    http:
    ssl_certificate: /ssl/fullchain.pem
    ssl_key: /ssl/privkey.pem

The error is as follows:

Failed to save add-onconfig: Missing option 'keyfile' in lets_encrypt in Dynu DNS (4e8751bd_dynudns). Got {'lets_encrypt': {'lets_encrypt': {'accept_terms': True, 'certfile': 'fullchain.pem', 'keyfile': 'privkey.pem'}, 'token': 'MYOWNTOKEN', 'domains': ['mydomain.freeddns.org'], 'aliases': [], 'seconds': 300, 'http': {'ssl_certificate': '/ssl/fullchain.pem', 'ssl_key': '/ssl/privkey.pem'}}, 'token': 'MYTOKEN', 'domains': ['mydomain.freeddns.org'], 'aliases': {}, 'seconds': 300}

For me UI was adding an "empty" domain, when i removed that it worked from UI and the config looks ok as well