Dspace ui on different server

37 views
Skip to first unread message

Christoforos Korifidis

unread,
Apr 21, 2023, 10:39:35 AM4/21/23
to DSpace Community
Hello,

I would like setup dspace 7.5 ui on different server from the backend.
I have followed the instructions from here:
https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace
I run the test with yarn test:rest and I get the following result:

    Checking JSON returned for validity...
"dspaceVersion" = DSpace 7.5
"dspaceUI" = tatoi-ui.mnss.eu
"dspaceServer" = http://dspace.tatoi.mnss.eu
"dspaceServer" property matches UI's "rest" config? false
 Does "/api" endpoint have HAL links ("_links" section)? true

On my backend local.cfg

    dspace.server.url = http://dspace.tatoi.mnss.eu

My config.prod.yml is:

    rest:
        ssl: false
        host: dspace.tatoi.mnss.eu
        port: 80
        nameSpace: /server



Why do I get

    "dspaceServer" property matches UI's "rest" config? false

Tim Donohue

unread,
Apr 21, 2023, 11:01:39 AM4/21/23
to DSpace Community
Hi, 

The reason the two properties don't match is that you have..

1.  "dspace.server.url" set to "http://dspace.tatoi.mnss.eu"
2. The settings in "config.prod.yml" have a combined URL of "http://dspace.tatoi.mnss.eu/server"

Either you need to correct the "dspace.server.url" to be the same URL... or you need to change the "rest > nameSpace" to be "/"

Tim

Christoforos Korifidis

unread,
Apr 23, 2023, 3:18:06 AM4/23/23
to DSpace Community
Thanks a lot Tim.
That solved my problem.
Reply all
Reply to author
Forward
0 new messages