Azure Application Gateway routing rules
-
We have setup jsreport using an azure web app hosting the docker container. All is working correctly with that. The URL that points to the jsreport app service looks something like this https://myAppService.azurewebsites.net (default behavior of the app service).
We have several custom domains that point to azure application gateways. We use these gateways to route specific request to back end app services.
I do not want to use the default app service url to my server. So I have a application gateway that would take something like this MyApp.myCustomDomain.com/reportserver/jsreport and route that request to the jsreport app service.
This works fine for getting to the login page or using the APIs. But the web app starts to fail right after login. It looks like it does not use a relative path but assumes you are always on the root domain url. Example: after log in it tries to execute something in the studio or scripts file with this path. https://MyApp.myCustomDomain.com/studio or https://MyApp.myCustomDomain.com/scripts. But it should be trying to run them from MyApp.myCustomDomain.com/reportserver/jsreport/studio or MyApp.myCustomDomain.com/reportserver/jsreport/scripts.
Is there a way to have it preserve the full url when access its folders?
Thanks in advance.
-
Please check the
appPath
andmountOnAppPath
configs.
https://jsreport.net/learn/configuration#web-server
-
This is what I needed, Thank you for the quick response.