-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the base URI for the image api #36
Comments
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
and https://iiif.io/api/image/3.0/example/reference/detail/info.json shows
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
is fixed in: Line 73 in 3cc6a42
Which is fine for my uses. The thing I needed to change was the hostname and I believe you updated the following: iiif/iiif_reference_server.wsgi Line 27 in 975f1bc
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
as its currently set as |
Ideally I would also set this in the config: https://github.com/IIIF/docker-image-api-reference/blob/master/iiif_reference_server.cfg |
Is it set here: Line 159 in 975f1bc
|
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
The text was updated successfully, but these errors were encountered: