Homeassistant + Docker + Swag + 502 Bad Gateway

Hi

I rebuilt my server and I kept on getting bad gateway 502 error.

The fix was to edit homeassistant.subdomain.conf

and change both the proxy_pass to use the local IP address of the server instead eg.
proxy_pass http://xxx.xxx.xxx.xxxx:8123;

Hopefully this helps someone

4 Likes

Sir, you literally just saved my ass!!!
Thanks

1 Like

Ran into this issue as well, thanks for the tip!

Iā€™m also here to say you just saved my ass. This should be stickied SOMEWHERE.

Many thanks, this just helped me too!