Skip to content
Snippets Groups Projects
Verified Commit 81c3aff7 authored by David Beniamine's avatar David Beniamine
Browse files

Set annotot protocol

parent 8f60eeaf
No related branches found
No related tags found
1 merge request!10Annotot
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
...@@ -29,6 +29,8 @@ ANNOTOT_LISTEN_IP=0.0.0.0 ...@@ -29,6 +29,8 @@ ANNOTOT_LISTEN_IP=0.0.0.0
ANNOTOT_HOST=localhost ANNOTOT_HOST=localhost
# For production only # For production only
ANNOTOT_SECRET_KEY_BASE=insert-a-random-key-here ANNOTOT_SECRET_KEY_BASE=insert-a-random-key-here
# http or https
ANNOTOT_PROTO=http
# For traefik (optionnal) # For traefik (optionnal)
NAME=IIIF NAME=IIIF
HOST=IIIF.tetras-lab.io HOST=IIIF.tetras-lab.io
...@@ -5,7 +5,7 @@ import annotationPlugins from 'mirador-annotations/es/index'; ...@@ -5,7 +5,7 @@ import annotationPlugins from 'mirador-annotations/es/index';
import LocalStorageAdapter from 'mirador-annotations/es/LocalStorageAdapter'; import LocalStorageAdapter from 'mirador-annotations/es/LocalStorageAdapter';
import AnnototAdapter from 'mirador-annotations/es/AnnototAdapter'; import AnnototAdapter from 'mirador-annotations/es/AnnototAdapter';
const endpointUrl = `http://${process.env.ANNOTOT_HOST}:${process.env.ANNOTOT_PORT}/annotations`; const endpointUrl = `${process.env.ANNOTOT_PROTO}://${process.env.ANNOTOT_HOST}:${process.env.ANNOTOT_PORT}/annotations`;
const config = { const config = {
annotation: { annotation: {
adapter: (canvasId) => new AnnototAdapter(canvasId, endpointUrl), adapter: (canvasId) => new AnnototAdapter(canvasId, endpointUrl),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment