OCAP2 / OCAP

OCAP is an Arma 3 mission recording suite. It consists of a serverside addon and a packaged web server executable that allows for after-action review and better insight into what really happened.
Other
58 stars 14 forks source link

Web support for domain sub-paths #60

Open jonpas opened 2 years ago

jonpas commented 2 years ago

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.

tekig commented 1 year ago

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

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

jonpas commented 1 year ago

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