Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web support for domain sub-paths #60

Open
jonpas opened this issue Apr 13, 2022 · 2 comments
Open

Web support for domain sub-paths #60

jonpas opened this issue Apr 13, 2022 · 2 comments
Assignees
Labels
component:web Affects web component

Comments

@jonpas
Copy link

jonpas commented Apr 13, 2022

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.

@indig0fox indig0fox added the component:web Affects web component label Sep 26, 2022
@tekig
Copy link
Member

tekig commented May 24, 2023

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

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

@jonpas
Copy link
Author

jonpas commented May 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:web Affects web component
Projects
None yet
Development

No branches or pull requests

3 participants