Hi,
I have the exact same setup, and the exact same problem.
Iām running 2 webservers (weewx and hass) on different ports of the raspberry pi, and I have nginx running on a āproxyā-like other rasberry.
I have generated cerificates as outlined by a blog post from nginx, for both hass and weewx. This has the additional benefit that it also alters the .conf
file accordingly, and it worked flawlessly for my weewx web server.
However, for hass (which is running in a docker container), I get to the login screen (followed by my 2FA screen), and after having succesfully logged in, I get the āUnable to connect to Home Assistant.ā screen. I see nothing appearing in the logs. I however see that ātokens are generated for https://marvin.[redacted].be/
ā, so the login was succesfull.
This is my configuration.yaml:
http:
base_url: marvin.[redacted].be
use_x_forwarded_for: true
trusted_proxies:
- 192.168.86.35
This section might be related:
homeassistant:
customize: !include customize.yaml
packages: !include_dir_named packages
internal_url: "http://[my_external_ip_adress]:8123"
external_url: "https://marvin.[redacted].be"
I suspect that hass is trying to ārecheckā the certificate, but fails to do so. I tried to adding the following to my configuration:
http:
ssl_certificate: fullchain.pem
ssl_key: privkey.pem
wth the fullchain and privkey copied from my nginx server to the root directory of hass. But although this passed the ācheck configurationā, hass refused to start up (not even the āsafe bootā mode).
Iām basically out of ideas nowā¦
Thank you in advance!
Erwin
Edit: typo