Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
POC Mirador
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IIIF
POC Mirador
Commits
81c3aff7
Verified
Commit
81c3aff7
authored
2 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Set annotot protocol
parent
8f60eeaf
No related branches found
No related tags found
1 merge request
!10
Annotot
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.env.template
+2
-0
2 additions, 0 deletions
.env.template
src/index.js
+1
-1
1 addition, 1 deletion
src/index.js
with
3 additions
and
1 deletion
.env.template
+
2
−
0
View file @
81c3aff7
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/index.js
+
1
−
1
View file @
81c3aff7
...
...
@@ -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
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment