#Bad gateway with NGINX Home Assistant SSL proxy

1 messages · Page 1 of 1 (latest)

hollow basin
#

Hey, I'm trying to use NGINX Home Assistant SSL proxy with a Home Assistant Green to configure TLS.

I configured the add-on and uploaded the certs. It seems to start correctly but when I try to connect I get this error:

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

and when looking the logs of the add-on there is:

2026/04/22 18:55:15 [error] 137#137: *1 connect() failed (111: Connection refused) while connecting to upstream, client: fdf5:e520:5b88:1::14, server: home.mydomain, request: "GET / HTTP/2.0", upstream: "http://172.30.32.1:8123/", host: "home.mydomain"

Is there some special configuration to do for HA Green ?

cobalt stone
#

Have you added this part from the app documentation to the configuration.yaml file and restarted HA afterwards?

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
abstract axle
#

Your configuration for HA... you didn't configure SSL in there, yes?