Serve DMX from a path prefix
The path prefix is configurable by the admin. If set e.g. to /dmx
the webclient would be served at http://my.host.org/dmx/systems.dmx.webclient/
.
This allows scenarios when DMX runs behind a reverse proxy, and DMX is just one of several applications the proxy dispatches into.
Affected:
- server side:
- serving static resources
- serving REST services
- client side:
- constructing (AJAX) service requests
- constructing static asset requests
- possibly provide support for plugin developers
- dev environment:
- configure webpack dev server
- configure backend proxy
Unsolved problem: plugins contain static asset URLs (js, css, images, fonts, ...) which are constructed at compile time. So, as soon as the admin configures another path prefix she is supposed to recompile all plugins. This is not feasible.
Solution: HTML <base>
element.
Further conceptualization is required.
This is a follow-up of #333 (closed)