apicurio-registry
apicurio-registry copied to clipboard
UI and API can't run on the same hostname
Description
Registry Version: 3.0.2 Persistence type: sql
Both API and UI projects loads resources (css/js) from root path /
, so it makes not possible to run both of them on the same hostname as 2.x series.
Environment
Kubernetes 1.28, OpenShift
Steps to Reproduce
- Run apicurio-registry and apicurio-registry-api as separate pods
- Expose both pods as services
- Configure Routes, Route1 with path
/apis
, Route2 with path/ui
and point to corresponding services. - Try loading both UI and API (doc reference) in browser.
Expected vs Actual Behaviour
When you hit both in browser, both don't load correctly, because they both load css/js from root of the hostname, without path. Of course I can create Route3 with path /
but only one will work correctly (depending on to which service I will point it), but not both.
I would expect css/js and other assets to be loaded from domain.tld/path/
rather than from domain.tld
(where path is /ui or /apis, as their are default in Apicurio, so no additional configurations need to be introduced).
Maybe there is an option to fix that via config, but I cannot find it documented.