Support other applications on the same domain #1047
Replies: 3 comments 1 reply
-
|
What are the reasons for deploying homebox as a statically hosted nuxt app? If it was deployed on a Node server, the base path could easily be configured with an environment variable |
Beta Was this translation helpful? Give feedback.
-
|
I am using a local DNS server now to achieve a similar effect with subdomains, so I no longer need explicit support from homebox for this. |
Beta Was this translation helpful? Give feedback.
-
|
related: #322 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the problem you are trying to solve with this feature?
Many home-server enthusiasts, like to host multiple applications on the same domain/IP-address and default port using a reverse proxy and path prefixes. This is currently not possible with homebox, as it is a statically generated Nuxt application, that is hosted at the root path "/".
What is the solution you are proposing?
I suggest prefixing all routes used by homebox (e.g. with "homebox"), so that it can be used out of the box in a reverse proxy setup. This could be a separate docker image.
What alternatives have you considered?
Since Nuxt requires the root path at build time, it is not straight-forward to make the root path configurable, especially when using the docker image.
Additional context
Here is a POC that assumes a reverse proxy setup that forwards traffic from route
/homebox/*on the host to/*on the backend API port.a4ebd49
Contributions
Beta Was this translation helpful? Give feedback.
All reactions