OCAP
OCAP copied to clipboard
Web support for domain sub-paths
Sub-path being eg. example.com/aar
Using ocap-web with Traefik reverse proxy only works with a root domain or a sub-domain. Trying to use a sub-path (with proxy stripping the /aar prefix so it is even accessible) results in the ocap-web's API calls going to the root domain and as expected hitting a 404.
A config entry for setting the root URL where ocap-web should expect assets/API endpoint to be would solve this issue.
As a temporary option, you can use Traefik's StripPrefix
https://doc.traefik.io/traefik/middlewares/http/stripprefix/
stripprefix won't fully function as it will fail to load some files.