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
......@@ -29,6 +29,8 @@ ANNOTOT_LISTEN_IP=0.0.0.0
ANNOTOT_HOST=localhost
# For production only
ANNOTOT_SECRET_KEY_BASE=insert-a-random-key-here
# http or https
ANNOTOT_PROTO=http
# For traefik (optionnal)
NAME=IIIF
HOST=IIIF.tetras-lab.io
......@@ -5,7 +5,7 @@ import annotationPlugins from 'mirador-annotations/es/index';
import LocalStorageAdapter from 'mirador-annotations/es/LocalStorageAdapter';
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 = {
annotation: {
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