Open brmakana opened 9 years ago
@brmakana Hi! Thanks for loving fleetui! Subfolder supporting has some issue. How about using subdomain like "fleetui.grid.com"?
+1 Great project! I love to use it. Unfortunately it's not that easy for me to run it on a subdomain.
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?
Here's a PR implementing these changes: #32
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?