Era exatamente isso que tinha. Excepto que dentro da pasta SSL não tinha lá nada. Estou a fazer uma instalação de raiz do Debian devido ao problema de estar num ambiente unhealthy…
Depois da nova instalação vou voltar a fazer tudo de novo para ver se foi algum problema na instalação do DuckDNS.
Depois darei novidades. Obrigado a todos.
Só uma questão. Vejo muita info diferente pela internet a fora…
No router devo ter que encaminhamento de portas?
8123 > 8123 ?
443 > 8123 ?
80 > 80 ?
Está para aí algo de muito errado… Coloca aqui a configuração do addon do DuckDNS (em modo texto, e substitui a informação pessoal por xxxx), o log do addon (reinicia o addon, espera uns 5 minutos e depois copia o log) e também o log do HA (depois de copiares o log do addon). Tudo devidamente formatado.
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# DuckDNS
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
DuckDNS Log: (p.s.: o addon inicia, mas depois do erro que aparece, desliga-se automaticamente!)
[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
+ Generating account key...
+ Registering account key with ACME server...
+ Fetching account ID...
ERROR: Problem connecting to server (post for https://acme-v02.api.letsencrypt.org/acme/new-acct; curl returned with 7)
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
HA Log: (tenho estes 2 erros repetidos dezenas e dezenas de vezes)
2020-12-08 21:47:45 ERROR (MainThread) [homeassistant.components.hassio] Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/ssl/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/ssl/privkey.pem'. (See /config/configuration.yaml, line 15).
2020-12-09 01:59:39 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
Configuração no router:
Não consigo aceder externamente de maneira nenhuma (devido ao DuckDNS desligar-se automáticamente).
Internamente consigo aceder ao HA por: http://192.168.1.98:8123/
De mencionar que internamente se aceder a http://192.168.1.98 vai para esta página:
Acho que está aqui a info toda necessária.
Obrigado pela ajuda!
Redirecciona a porta 80 para 8123 e não para 80. Depois reinicia o router (alguns precisam reiniciar) e, quando o router reiniciar, inicia de novo o addon.
<div class="col-xs-6 text-left">
<h1>Boulder<br>
<small>The Let's Encrypt CA</small></h1>
</div>
</div>
<div class="row">
<div class="col-xs-8 col-xs-offset-2 text-center">
<h3>This is an <a href="https://github.com/letsencrypt/acme-spec/">ACME</a> Certificate Authority running <a href="https://github.com/letsencrypt/boulder">Boulder</a>.</h3>
<p>This is a <em>programmatic</em> endpoint, an API for a computer to talk to. You should probably be using a specialized client to utilize the service, and not your web browser. See <a href="https://letsencrypt.org/"><tt>https://letsencrypt.org/</tt></a> for help.</p>
<p>If you're trying to use this service, note that the starting point, <em>the directory</em>, is available at this URL: <a href="https://acme-v02.api.letsencrypt.org/directory"><tt>https://acme-v02.api.letsencrypt.org/directory</a></tt>.</p>
</div>
</div>
<div class="row">
<div class="col-xs-4 col-xs-offset-2 text-center">
<p><a href="https://letsencrypt.status.io" title="Twitter">
<i class="fa fa-area-chart"></i>
Service Status (letsencrypt.status.io)
</a></p>
</div>
<div class="col-xs-4 text-center">
<p><a href="https://twitter.com/letsencrypt" title="Twitter">
<i class="fa fa-twitter"></i>
Check with us on Twitter
</a></p>
</div>
</div> <!-- row -->