Fixing a proxying problem with my HomeAssistantOS installation by replacing nginx proxy manager
tl;dr: I removed the “nginx proxy manager” add-on, and replaced it with the Let’s Encrypt add-on and (second) the nginx add-on.
A couple of months ago, I moved my HomeAssistant installation to HAos.
I think that it is fair to say that I was not overly pleased with this. Honestly, I preferred the “Core” python-venv approach, but I also wanted a “supported” installation, and so I switched to HAos.
i got it up and running okay, and I thought that I had got proxying working too, using an add-on called “nginx proxy manager”.
This is not something that I had used before; I’d rather just configure nginx myself.
Well, either I got something wrong, or it just does not work very well, as I kept having problems using HomeAssistant, stuck on a “loading data” screen, or it simply not responding.
This bugged me for quite a while.
Annoyingly, the logs available to me within HAos were unhelpful. I couldn’t spot anything indicating a problem.
Using the console in my web browser, I noted that some files were not loading correctly, but why that was the case, I wasn’t sure.
I thought that I’d had a similar issue with my “Core” installation years ago, which I got down to the issue of the trusted_proxies in the configuration.yaml file, but that looked correct here (which I was able to check, using the SSH add-on.
I tried various parameters in the nginx proxy manager add-on, but to no avail.
In the end, I tried removing the nginx proxy manager add-on, and replacing it with the Let’s Encrypt add-on (which I installed, configured, and ran first), and then the nginx add-on.
And it immediately started working correctly.
So I don’t know exactly why my original set-up was not working, but at least it is working better now.
Discussion in the ATmosphere