homebridge-config-ui-x
homebridge-config-ui-x copied to clipboard
Web Root Feature request
It is a pain for me to not be able to specify a web root path e.g. /homebridgeui
So I can proxy more effectively on my system instead of having to use the root.
Describe the solution you'd like:
I would like to be able to have an option to provide a web root path, such as /homebridgeui
which means all UI is prefixed with that path. This allows me to use NGINX to proxy all of my applications that all run on / on a single system across multiple ports.
Describe alternatives you've considered: Can't find a way around this yet.
Additional context: I run homebridge on the same home server as a tool called Tautulli, which provides this option and looks like this:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
+1 on this, to prevent stale bot closing it!
+1 please keep this alive - closing feature requests that are old is not a good idea
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Keeping this open!
Yes please! An option like the one described in config.json would be cool. https://github.com/oznu/homebridge-config-ui-x/wiki/Config-Options#proxyhost
+1 That would be a useful feature
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Wow stale bot is keen
+1
+1 to keep this alive
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
+1 to keep alive
Does anyone have any suggestions on how to implement this feature? If we make a start on how to implement, then it should be more like that it gets picked up and done.
It does look like the way to go forward with this is to implement a config variable which is applied to the prefix
attribute in the Fastify init https://www.fastify.io/docs/latest/Server/#prefix
Does anyone have any suggestions on how to implement this feature? If we make a start on how to implement, then it should be more like that it gets picked up and done.
You probably don't need a config — HTML markup can be made relative, and JavaScript can figure out the path on its own. If this is true, the issue would become much simpler.
https://github.com/oznu/homebridge-config-ui-x/blob/66c1e5d61b9d197cdb6408716e33a13bf25883af/ui/src/index.html#L7-L18
These relative URLs would need to change from absolute path to relative, for example, from /assets
to ./assets
. (I am not sure why there is a <base href="/">
in the markup; I couldn't find HB serving any pages under a sub-directory path.)
The links and the image paths on the top navbar would need to be relative too (I only casually search the code on GitHub, perhaps there are more links/image paths):
https://github.com/oznu/homebridge-config-ui-x/blob/bbd2299e21ecfb5e2c661f47f698350278bb90cd/ui/src/app/shared/layout/layout.component.html#L5-L6
Same goes to these API socket.io path stored in environment.prod.ts
. It can probably deduce to the right URL inline by parsing document.location.pathname
.
https://github.com/oznu/homebridge-config-ui-x/blob/3e9fd2e17ffd8263fd8fe9c4444374eb8e3127bd/ui/src/environments/environment.prod.ts#L3-L12
One thing I am not sure is the socket.io URL. Not sure if it will work if you give that ws:
/wss:
URL a path.
Beyond that I don't see anything outstanding that would need to be fixed.
You probably don't need a config
Just to clarify, proxyHost
is still needed, otherwise socket.io will be blocked by CSP. You just don't need a new config.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bump :(
Is this related to issue #628 ? Commenting to bump if so!
Is this related to issue #628 ? Commenting to bump if so!
Yes, it is.
Would really like to see this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Would really like to see this too.
Please sir, may I have the ability to use a base directory w/ my reverse proxy?
Commenting to ensure this stays alive and to follow.
+1 for this feature
+1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
keep this open!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.