Open glenrobson opened 6 years ago
Hmmm... the WSGI support was a bit of a hack that I got going as a test and never really sorted out. I agree that there needs to be a way to do sensible config.
https://iiif.io/api/image/2.1/example/reference/detail/info.json now shows
"@id": "http://iiif.io/api/image/2.1/example/reference/detail",
and https://iiif.io/api/image/3.0/example/reference/detail/info.json shows
"id": "http://iiif.io/api/image/3.0/example/reference/detail",
which look good. Not sure whether there is still something to do here.
Yes this works great. Just because it took me a while to find out how this worked. The file path
/api/image/[1-3].[0-1]/example/reference/[file_name]/info.json
is fixed in:
Which is fine for my uses. The thing I needed to change was the hostname and I believe you updated the following:
to take a config file where I could set this. Which I have done in the following config:
https://github.com/IIIF/docker-image-api-reference/blob/master/iiif_reference_server.cfg
So I think this is done and can be closed.
Sorry, just looking further into this and would it be possible to set the scheme in the config as well? This is the only thing that is failing the IIIF validator:
I need to set the id in the info.json to
https://iiif.io/api/image/3.0/example/reference/67352ccc-d1b0-11e1-89ae-279075081939"
as its currently set as http://...
Ideally I would also set this in the config:
https://github.com/IIIF/docker-image-api-reference/blob/master/iiif_reference_server.cfg
I've deployed this as the image reference implementation but when you get the info.json the
@id
of the image starts withhttp://resync.library.cornell.edu/iiif_auth_test
. Is there a way to set this either as part of the deployment or as a parameter? You can see an example of this by going to:http://iiif.io/api/image/2.1/example/reference/detail/info.json
Ideally this would be either:
I see the comment in the code about taking it from the WSGI but that won't work in this case as its running from image-api.iiif.io and proxied through the iiif.io website. Unless I can set a variable in the WSGI config file.
For info this is the docker build file:
https://github.com/IIIF/docker-image-api-reference/blob/master/Dockerfile