DSpace / DSpace

(Official) The DSpace digital asset management system that powers your Institutional Repository
https://wiki.lyrasis.org/display/DSDOC7x/
BSD 3-Clause "New" or "Revised" License
853 stars 1.29k forks source link

Fix the default configuration of the IIIF image server #9601

Open francescopioscognamiglio opened 1 month ago

francescopioscognamiglio commented 1 month ago

Describe the bug Right now, the property iiif.image.server contains a default value that's not suitable with production instances. In fact, the value http://localhost:8182/iiif/2/ seems to be the endpoint of a local instance of Cantaloupe. Since it's a specific scenario, it's better to change it.

FYI: the default configuration is set here https://github.com/DSpace/DSpace/blob/main/dspace/config/modules/iiif.cfg#L8.

Expected behavior We can set the default value of the property iiif.image.server to something more generic. We can also specify a subpath (for example iiif-server) that, behind the scenes, redirects to the image server.

So, the new default configuration might be iiif.image.server = ${dspace.ui.url}/iiif-server/.