Adrian Rumpold
10/11/2023, 7:24 AM/[root_path]/proxy/8000
. However, the UI tries to fetch assets from /assets/...
or to access the API at /api
, which leads to 404 errors (due to the missing root path prefix in the URLs).Isan Rivkin
10/11/2023, 7:50 AMThis allows users to access the lakeFS instance through a URL likeWhat do you mean by access? UI access or API access? i’m not sure what’s that path you provided?/[root_path]/proxy/8000
or to access the API atWhat component returns the 404? can you elaborate more on your setup, issue and what are you trying to achieve?, which leads to 404 errors (due to the missing root path prefix in the URL/api
Adrian Rumpold
10/11/2023, 8:01 AM/.../proxy/8000/
to lakeFS. Requests to any other path prefix are forwarded to the underlying application server (JupyterHub in this case).
The 404 errors are returned by JupyterHub for requests the lakeFS UI makes to fetch its JavaScript assets (e.g., /assets/index.js
)
Was I was looking for is a way to configure the lakeFS server to add a given prefix to all URLs accessed from the frontend (or derive it from the request URL, maybe?). E.g., let's say I set this config value to /root/path/proxy/8000
, the frontend would load its assets from /root/path/proxy/8000/assets/8000
and access the backend lakeFS API under /root/path/proxy/8000/api/...
.
Does that make sense?Isan Rivkin
10/11/2023, 8:14 AMif path_prefix = /root/api then rewrite_path("/api") forward request
Adrian Rumpold
10/11/2023, 8:26 AMIsan Rivkin
10/11/2023, 8:39 AM