OCAP icon indicating copy to clipboard operation
OCAP copied to clipboard

Web support for domain sub-paths

Open jonpas opened this issue 3 years ago • 2 comments

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.

jonpas avatar Apr 13 '22 18:04 jonpas

As a temporary option, you can use Traefik's StripPrefix

https://doc.traefik.io/traefik/middlewares/http/stripprefix/

tekig avatar May 24 '23 08:05 tekig

stripprefix won't fully function as it will fail to load some files.

jonpas avatar May 24 '23 09:05 jonpas