Skip to content

Pass UI_URL to the frontend as DSPACE_UI_BASEURL - #1491

Merged
milanmajchrak merged 1 commit into
customer/TULfrom
fix/pass-ui-baseurl-to-frontend
Sep 1, 2026
Merged

Pass UI_URL to the frontend as DSPACE_UI_BASEURL#1491
milanmajchrak merged 1 commit into
customer/TULfrom
fix/pass-ui-baseurl-to-frontend

Conversation

@Kasinhou

@Kasinhou Kasinhou commented Sep 1, 2026

Copy link
Copy Markdown

Ports the fix from dataquest-dev/devops#62 to the customer/TUL docker-compose.

What

Adds DSPACE_UI_BASEURL: ${UI_URL:-http://127.0.0.1:4000} to the dspace-angular service environment, so the public UI URL is forwarded into the frontend container.

Why

The frontend never received UI_URL, so ui.baseUrl kept the built-in default http://localhost:4000, while the backend already gets the correct value via dspace.ui.url. On DSpace 9.x, server.ts builds Angular's SSR host allowlist from ui.baseUrl; a request with any other Host is rejected, DSpace falls back to client-side rendering and answers 200 for every route — including routes that do not exist.

See dataquest-dev/devops#62 for full context and verification.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to forward the public UI URL (UI_URL) into the dspace-angular container so Angular SSR can use the correct ui.baseUrl (and avoid Host mismatches that trigger SSR rejection / CSR fallback).

Changes:

  • Adds DSPACE_UI_BASEURL to the dspace-angular service environment in docker/docker-compose.yml (derived from UI_URL with a default fallback).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docker/docker-compose.yml
@milanmajchrak
milanmajchrak merged commit 4a71c82 into customer/TUL Sep 1, 2026
4 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.

3 participants