Hello everyone,
I’m facing an issue with my public Home Assistant (HA) website. After logging in, I keep encountering the following error:
Unable to connect to Home Assistant.
Retrying in 44 seconds...
I have set up HA to be publicly accessible via an external Nginx running on OPNsense. Below are the relevant sections of my Nginx configuration:
location / {
BasicRule wl:19;
DeniedUrl "/waf_denied.html";
if ($scheme != "https") {
return 302 https://$host$request_uri;
}
autoindex off;
http2_push_preload off;
proxy_set_header Host $host;
proxy_set_header X-TLS-Cipher $ssl_cipher;
proxy_set_header X-TLS-Protocol $ssl_protocol;
proxy_set_header X-TLS-SNI-Host $ssl_server_name;
proxy_set_header X-Client-Dn $ssl_client_s_dn;
proxy_set_header X-Client-Verify $ssl_client_verify;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-TLS-Client-Intercepted $tls_intercepted;
proxy_ignore_client_abort off;
proxy_request_buffering on;
proxy_max_temp_file_size 1024m;
proxy_buffering on;
proxy_pass http://upstreamed69afd43e004d5e860a0874a76cb467;
proxy_hide_header X-Powered-By;
include f3558477-ffd2-475a-90dd-05732c1b0613_post/*.conf;
}
include 54c040af-169e-4643-be9c-f6a331543bef_post/*.conf;
Does anyone have any idea why this error is occurring? Could it be related to the Nginx configuration, or are there any known issues in this context?
Thanks in advance for your help!