-
Notifications
You must be signed in to change notification settings - Fork 56
UI behind reverse proxy #85
Comments
@fleed you are right, all the resources are served in /ui/resources segment. Appart from the redirection of /monitor to the beatpulse url, could you add a redirection to the resources segment?
|
Hi @fleed can I close this issue? |
You can use the Last fature at version 3.0.2. Use apiOptions properties to change. |
@GustavoFonsecaDeAlmeida is 3.0.2 released? |
We are having trouble deploying NuGets with AppVeyor: Im working on it. If we can't fix it we will deploy UI 3.0.2 manually. |
BeatPulse UI 3.0.2 has been published to Nuget @fleed @GustavoFonsecaDeAlmeida. If you can check it works properly I close the issue. Thanks |
Could this also be related with #77? |
In this case the issue was with the UI resources (js, css and static files). You have no problem using an empty path to register this kind of assets as you have when binding the middleware. People using a reverse proxy might need to register the UI resources on the same path de the UI is served. |
@CarlosLanderas I tested, but it didn't actually solve my use case. I'm observing the following: I'm browsing Inspecting the source code I can find the expected links (e.g. The problem is that the Additionally, testing the following link |
@fleed Are you configuring UseBeatPulseUI with the resources path set to /monitor?. That should not work behind nginx. Try configuring it to empty string so the resources are served from the root where you are served the html page. By the way, I think you need to have into account the final url were resources are served by nginx when configuring your paths on UseBeatPulseUI api options as resources and middlewares are resolved on runtime so try mapping it to /BeatPulseApp/ui/resources/ or the path that is going to be final |
I use a nginx. The nginx provide a "apiName/v1" for all projects. I configure to using apiOption propertie BeatPulseResourcePath to "/apiName/v1/ui/resources" thats work successfully. |
@GustavoFonsecaDeAlmeida that's exactly what I mean. Thanks for another sample. @fleed try doing what Gustavo and I are explaining and it should work as all resource paths are full configurable now. |
@CarlosLanderas it is successfully working, but I need the following nginx configuration entries:
My BeatPulseUI is configured like this:
avoiding any conflicts with other /ui assets. Maybe I'm misconfiguring the system and someone can suggest a simpler configuration, but if that's the way to make it work in this context (nginx -> ServiceFabric -> BeatPulse), I consider it a little bit ugly. If there is a virtual path serving the BeatPulse website, it should be IMHO totally transparent to the application (or at least configurable). I can close this issue as I find a workaround for the original problem and you can reopen if you consider additional work. Thank you for support and for the work on this great project. |
Thanks for the feedback @fleed :) |
I'm trying to publish the ui behind Nginx creating a specific subpath for the BeatPulse web application, but all the ui related resources cannot be loaded.
I'm trying to redirect from
https://myserver.com/monitor
tohttp://localhost:{app-specific-port}
.In the file
BeatPulse/src/BeatPulse.UI/Assets/index.html
I see some absolute paths:/ui/resources/bootstrap-min.css
/ui/resources/beatpulse.css
/ui/resources/vendors-dll.js
/ui/resources/beatpulse-bundle.js
Are they somehow replaced if the UI is not placed at the root of the website? Maybe an option to be specified in the setup methods?
The text was updated successfully, but these errors were encountered: