I have a reverse proxy setup on Kubernetes on machines A, B and C (192.168.5.10, 192.168.5.11, 192.168.5.12) that’s being load balanced, and acting as the SSL termination for mydomain.xyz.
I have Home Assistant setup on a Raspberry Pi (192.168.5.20)
In my reverse proxy config, I have a whole bunch of Authelia stuff, but the main section in regards to Home Assistant is:
I want to access homeassistant at mydomain.xyz/homeassistant from the internet, and also homeassistant.:8123 (or mydomain.xyz/homeassistant) from when within the LAN.
Right now when navigating to mydomain.xyz/homeassistant I can see that it is loading the Home Assistant index.html page, but it is not adding on the homeassistant directory in the requests. Ie, the first javascript file trying to load is:
Hey @tmjpugh I checked that thread, some users reported the same issue as me, but I couldn’t see a solution. A workaround was to just home assistant on its own subdomain, but that’s not an option for me. Should I post my question in that thread instead?
Can you try using a sub_filter directive in your location config?
That will parse the response from HA and replace every value of https://mydomain.xyz/ with https://mydomain.xyz/homeassistant/
set sub_filter_once off; such that the filter does not stop after the first instance.
Well, it was worth a shot .
Not sure how home assistant handles the hosting.
Maybe one of the devs or moderators can chime in for a better understanding on why it would not work as a subdirectory.