Commit 44005705 authored by Joerg-Holger Panzer's avatar 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
......@@ -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
......
......@@ -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"`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment