I don’t see it anywhere in the docs and it looks like (based on const.py) that the webroot is not configurable. This makes it difficult to run behind a reverse proxy (like nginx) to add SSL without having to do a bunch of fancy trickery.
I’ve just been looking at home-assistant for my automations and this is one of my requirements as well. I’ve got several things running behind Apache with basic auth and SSL, each in its own subdirectory (including zoneminder and some little DIY apps of my own using Django).
I’d like to add homeassistant seamlessly into that mix, but that means it has to live in a subdirectory.
A quick look at the code though shows it’s not going to be a small change. The paths from root seem to be hardcoded all over the place. It’s a shame, because const.py defines URL_ROOT which looks like it should be the right place to do it but it’s hardly used.
I would like to see this to… I have many web apps, services that are behind an nginx reverse proxy. I would like hass to be reachable under something like “/hass”.
Currently I run it on “/” but it causes strange redirects to “/” when I want to access for example “/nodered”, which is also reverse proxied through nginx.
A bit strange it is not possible for such a modern project.
As I do not have a domain, I remotely connect to my server via IP and I would want to have access through Apache reverse proxy in a sub-directory (other services hosted as well).
That feature would be awesome!.. or if anyone has any idea on how to configure apache to do so…
this would be a great feature - I’m also struggeling at the moment to get HA runnung per apache proxy at a sub-path in the url … does anyone has a workaround?
Obviously that means you cannot have any other services using /static /local /api /frontend on the same server…
You also need to sudo a2enmod proxy_wstunnel
And when accessing IP/hass, it does not redirect automatically to the states page, you have to click on the link.
It works! The problem I keep having is that Firefox memorise the cookies in a way that cut me access to the other services that I have on the same host but on different folders. Chrome instead seems to work.
+1 as this is particularly useful when hass lives with other web services at the directory level. I’d love it so all my web stuff use the exact same ssl setup.