Skip to content

Feat: allow hosting alby hub on subpath#1439

Merged
im-adithya merged 3 commits intomasterfrom
feat/add-base-path-feedback
Jun 26, 2025
Merged

Feat: allow hosting alby hub on subpath#1439
im-adithya merged 3 commits intomasterfrom
feat/add-base-path-feedback

Conversation

@rolznz
Copy link
Contributor

@rolznz rolznz commented Jun 24, 2025

Fixes #1025

Followup of #1393

8de2fdb0 and others added 3 commits June 9, 2025 14:54
- add docker build arg to set base path frontend is served under
- set vite.config.ts base value based on docker build arg
- update http variant request function to inject base path during calls to /api and /images
- update how static assets are loaded from public folder to inject base path during vite build

To use a base path build the docker image with --build-arg BASE_PATH=/hub/.
All assets and api calls from the frontend will use that base path as prefix.

The backend service is not using the base path, when using a proxy the base path has to be stripped.
@8de2fdb0
Copy link
Contributor

Thanks for cleaning that up, looks good to me.

Copy link
Member

@im-adithya im-adithya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK, nice 🙌

@im-adithya im-adithya merged commit 51ce7c6 into master Jun 26, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to load when reverse proxy is configured with a location other than root

3 participants