forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 18
Custom namespace
Ondrej Kosarko edited this page Dec 6, 2024
·
1 revision
You'll need to set up more than just the cfg
/.env
properties.
This wiki is written specifically for Docker installation.
.env
DSPACE_REST_NAMESPACE
DSPACE_UI_NAMESPACE
docker-compose
- in
docker-compose.yml
:DSPACE_REST_NAMESPACE
andDSPACE_UI_NAMESPACE
property
2. Create a symlink for Tomcat in the Docker container to ensure the backend operates at the correct URL
- in
docker-compose-rest
, service:dspace
, section:entrypoint
, add:pushd ../webapps && unlink server && ln -s /dspace/webapps/server/ '<YOUR_NAMESPACE_CHANGE_ME>#server' && popd
- in
aai.js
change variablenamespace
to your namespace value - You can directly mount the
aai.js
file into the FEdist
folder like this:/aai.js:/app/dist/browser/aai.js
. Add this line to thedocker-compose.yml
file under thevolumes
section.
-
assets
path ignores yournamespace
configuration. The UI is just trying to fetch the data (images,...) from theUI_URL/assets
and not fromUI_URL/<NAMESPACE>/assets
The issue is that the Referer
in the UI request does not include the /repository/
namespace. Due to the Referrer Policy: strict-origin-when-cross-origin
, the UI request ignores the namespace if the UI and backend have different URLs (i.e., different ports).
- e.g.,
/repository/