Skip to content

Commit

Permalink
config: add IIIF server URL to invenio.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and slint committed Apr 23, 2024
1 parent 16472ce commit 8d1af1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ services:
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true"
iipserver:
image: registry.cern.ch/docker.io/iipsrv/iipsrv:latest
ports:
ports:
- "8080:80"
expose:
- "8080"
environment:
- "CORS=*"
volumes:
- ${INSTANCE_PATH}/iiif/images:/images # INSTANCE_PATH must be defined in the environment (or .env file)
- ${INSTANCE_PATH}/iiif/images/public:/images # INSTANCE_PATH must be defined in the environment (or .env file)
8 changes: 5 additions & 3 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ from invenio_vocabularies.services.custom_fields import (
SUBJECT_FIELDS_UI,
SUBJECT_FIELDS
)
from invenio_rdm_records.resources.iiif import IIPServerProxy
from invenio_rdm_records.services.components.signal import SignalComponent
from invenio_rdm_records.services.components import DefaultRecordsComponents
from invenio_oauthclient.views.client import auto_redirect_login
Expand Down Expand Up @@ -766,7 +767,8 @@ RDM_DATACITE_FUNDER_IDENTIFIERS_PRIORITY = ("doi", "ror", "grid", "isni", "gnd")
RECORDS_RESOURCES_ALLOW_EMPTY_FILES = False
"""Disable empty files for Zenodo."""


from invenio_rdm_records.resources.iiif import IIPServerProxy
IIIF_PROXY_CLASS = IIPServerProxy
"""IIIF proxy class for IIIF server."""
"""IIIF proxy class for IIIF server."""

RDM_IIIF_SERVER_URL = "http://127.0.0.1:8080"
"""IIIF image server URL."""

0 comments on commit 8d1af1c

Please sign in to comment.