purpleworks / fleet-ui

Web based UI for fleet
http://fleetui.com/
MIT License
233 stars 39 forks source link

Hosting fleetui on a subfolder #15

Open brmakana opened 9 years ago

brmakana commented 9 years ago

Hello,

Love fleetui, nice work! I'm looking to run it on a coreOS cluster, so to do so I created a service definition (fleetui.service). I would also like to serve fleetui on port 80, and since I have many applications running on my coreOS grid, I use a proxy to forward traffic to the actual containers and give each app a folder; example: grid.com/app1, grid.com/app2, etc.

When I tried to run fleetui this way, it runs but doesn't work - it looks like fleetui is expecting to be in the root folder of a web host, and so doesn't try and request resources (css, js) from the folder it's being served in. Example again: grid.com/fleetui/, but the app is requesting grid.com/file.js.

Is it possible to have fleetui detect if it is running in a subfolder and if so obey it when making resource requests?

subicura commented 9 years ago

@brmakana Hi! Thanks for loving fleetui! Subfolder supporting has some issue. How about using subdomain like "fleetui.grid.com"?

mxmo0rhuhn commented 9 years ago

+1 Great project! I love to use it. Unfortunately it's not that easy for me to run it on a subdomain.

jmtsi commented 8 years ago

I see that the front-end app uses absolute paths at least for the api and views. Isn't this problem solved just by using relative paths instead?

jmtsi commented 8 years ago

Here's a PR implementing these changes: #32