Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosting fleetui on a subfolder #15

Open
brmakana opened this issue Mar 25, 2015 · 4 comments
Open

Hosting fleetui on a subfolder #15

brmakana opened this issue Mar 25, 2015 · 4 comments

Comments

@brmakana
Copy link

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
Copy link
Contributor

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

@mxmo0rhuhn
Copy link

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

@jmtsi
Copy link

jmtsi commented Nov 24, 2015

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
Copy link

jmtsi commented Nov 24, 2015

Here's a PR implementing these changes: #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants