koying / ha-addons

Apache License 2.0
7 stars 14 forks source link

Problems saving config #17

Open bjorndegroot opened 7 months ago

bjorndegroot commented 7 months ago

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:

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}

JohanSpannare commented 3 months ago

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