I’ve been trying to get this to work for 2 days now and I can’t get there. Let me try to give as much information as possible. I have:
- HASSIO on a QNAP, Unbunty 18.04 lts virtual machine. Local access, without http works fine on port 8123
- Created a DuckDNS account and registered a domain. Lets call that: mydomain.duckdns.org
- Installed the DuckDNS AddOn in HA and configured the following config file:
lets_encrypt:
accept_terms: true
certfile: fullchain.pem
keyfile: privkey.pem
token: dummy-a027-4fd1-ad88-4f132ac3e798
domains:
- mydomain.duckdns.org
aliases: []
- When starting the AddOn the log reads:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
# INFO: Using main config file /data/workdir/config
+ Account already registered!
[20:09:52] INFO: OK
195.213.125.199
NOCHANGE
# INFO: Using main config file /data/workdir/config
Processing doubledutch.duckdns.org
+ Checking domain name(s) of existing cert... unchanged.
+ Checking expire date of existing cert...
+ Valid till Dec 28 19:52:33 2020 GMT Certificate will not expire
(Longer than 30 days). Skipping renew!
seconds: 300
- Configured two port redirects on my router: 443 and 8123 both redirect to my VM IP address to port 8123
- HA->Configuration->General: External URL is set to: https://mydomain.duckdns.org
- I have made NO CHANGES to the configuration.yaml file NOR have I installed any other tools such as credbot on my server. Everything is “vanilla”
The results:
- When I visit: https://mydomain.duckdns.org or https://mydomain.duckdns.org:8123 the browser (Chrome) shows: "mydomain.duckdns.org sent an invalid response.
- The HA Logs show a longer message which includes “aiohttp.http_exceptions.BadStatusLine: invalid HTTP method” - It does this consistently everytime I try to connnect so I assume from that, that the request does make it through my router, port redirect to the virtual machine
- When I use nmap -p 8123 localhost, the result includes: 8123/tcp open polipo (I mention this as some posts have suggested there should be a hassio reference there - not sure what polipo is)
I’ve looked at about 100 different forum posts and I can’t figure out what’s going on so I would really appreciate some guidance as without this, I can’t get my smartthings integration to work.