Base URL for jsreport studio
-
By default jsreport server is hosting port 5488, and when I access http://server:5488/ I got the studio screen. My question: is there a way to configure a base context path for the studio? e.g. http://server:5488/studio?
My project is reverse proxied by an Apache server, and my intention is to reverse proxy the jsreport stuidio as well so that it can be accessed via the unified URL, e.g. http://myhost.com/myproject for my project, and http://myhost.com/jsreport/studio for jsreport studio, therefore if jsreport stuido has such a base context path will make the Apache configuration easier and clearer.
Thanks!
-
Just an update: it looks that use /studio as the reverse proxy URI in Apache worked, just that the socketio connections broke but the jsreport studio functionalities are still working.
-
You probably don't need the socket connections. These are used only in dev mode to synchronize local file changes from external editor. You can disable sockets using this config
"connectionString": { "syncModifications": false.... }
If you are interested, here is the nginx config which correctly forwards sockets
https://github.com/jsreport/docs/blob/master/installation/nginx.conf
-
@jan_blaha thanks for the info and sorry for late reply :-p