Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
metsimporter
Commits
44005705
Commit
44005705
authored
Jun 01, 2022
by
Joerg-Holger Panzer
Browse files
Add additional key pattern
to construct S3 keys for images
parent
a3ae2613
Pipeline
#300436
canceled with stages
in 45 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
cfg/commons/commons-static.env
View file @
44005705
...
...
@@ -19,6 +19,7 @@ EXPORT_KEY_PATTERN_ENDNOTE="citation/%s/%s_%s.enw"
EXPORT_KEY_PATTERN_IIIF="iiif/%s.json"
EXPORT_KEY_PATTERN_IIIF_RANGE="iiif/%s/range/%s.json"
EXPORT_KEY_PATTERN_INFO_JSON="info/%s/%s.json"
EXPORT_KEY_PATTERN_IMAGE="orig/%s/%s."
# orig/<work_id>/<page>.{jpg | tif | gif | ...}
S3_IMAGE_KEY_PATTERN=orig/%s/%s.%s
...
...
indexer/util/config.go
View file @
44005705
...
...
@@ -134,6 +134,7 @@ type Config struct {
ExportKeyPatternIiif
string
`mapstructure:"EXPORT_KEY_PATTERN_IIIF"`
ExportKeyPatternIiifRange
string
`mapstructure:"EXPORT_KEY_PATTERN_IIIF_RANGE"`
ExportKeyPatternInfoJson
string
`mapstructure:"EXPORT_KEY_PATTERN_INFO_JSON"`
ExportKeyPatternImage
string
`mapstructure:"EXPORT_KEY_PATTERN_IMAGE"`
// HTTP connection settings
HttpClientTimeout
int
`mapstructure:"HTTP_CLIENT_TIMEOUT"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment