Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Cantaloupe on Docker
Commits
3f974506
Verified
Commit
3f974506
authored
Sep 27, 2021
by
Sebastian Schüpbach
Browse files
update configuration to 5.x
parent
9b3315d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
cantaloupe.properties
View file @
3f974506
...
...
@@ -17,14 +17,11 @@ temp_pathname =
http.enabled
=
true
http.host
=
0.0.0.0
http.port
=
8182
http.http2.enabled
=
false
# !! Configures the HTTPS server. (Standalone mode only.)
https.enabled
=
false
https.host
=
0.0.0.0
https.port
=
8183
# Secure HTTP/2 requires Java 9 or later.
https.http2.enabled
=
false
# !! Available values are `JKS` and `PKCS12`. (Standalone mode only.)
https.key_store_type
=
JKS
...
...
@@ -32,8 +29,12 @@ https.key_store_password = myPassword
https.key_store_path
=
/path/to/keystore.jks
https.key_password
=
myPassword
# !! Maximum size of the HTTP(S) request queue. Leave blank to use the
# default.
# !! Constrains the size of the web server's thread pool. Leave blank to
# use the defaults.
http.min_threads
=
http.max_threads
=
# !! Maximum size of the request queue. Leave blank to use the default.
http.accept_queue_limit
=
# Base URI to use for internal links, such as Link headers and JSON-LD
...
...
@@ -56,7 +57,25 @@ max_pixels = 100000000
# Maximum scale to allow (1.0 = full scale; 0 = no maximum).
max_scale
=
1.0
print_stack_trace_on_error_pages
=
false
# A meta-identifier is a superset of an identifier that includes other
# information like a page number and/or scale constraint. A meta-identifier
# transformer transforms a meta-identifier to and from a string in a URI
# path component.
# Available transformers include `StandardMetaIdentifierTransformer` and
# `DelegateMetaIdentifierTransformer`. See the user manual for more
# information about meta-identifiers and these options.
meta_identifier.transformer
=
StandardMetaIdentifierTransformer
# Character sequence that separates the components of a meta-identifier in
# the identifier portion of a URI.
meta_identifier.transformer.StandardMetaIdentifierTransformer.delimiter
=
;
# If true, HTTP >= 400-level responses are logged at WARN and ERROR level.
# This may result in multiple log statements for the same error, but it may
# also help diagnose errors that have evaded logging.
log_error_responses
=
false
print_stack_trace_on_error_pages
=
true
###########################################################################
# DELEGATE SCRIPT
...
...
@@ -69,12 +88,10 @@ delegate_script.enabled = true
# !! This can be an absolute path, or a filename; if only a filename is
# specified, it will be searched for in the same folder as this file, and
# then the current working directory.
# The delegate script pathname can also be set using the
# -Dcantaloupe.delegate_script VM argument, which overrides this value.
delegate_script.pathname
=
delegates.rb
# Enables the invocation cache, which caches method invocations and return
# values in memory. See the user manual for more information.
delegate_script.cache.enabled
=
true
###########################################################################
# ENDPOINTS
###########################################################################
...
...
@@ -85,10 +102,8 @@ endpoint.iiif.1.enabled = false
# Enables the IIIF Image API 2.x endpoint, at /iiif/2.
endpoint.iiif.2.enabled
=
true
# Controls the response Content-Disposition header for images. Allowed
# values are `inline`, `attachment`, and `none`. This can be overridden
# using the ?response-content-disposition query argument.
endpoint.iiif.content_disposition
=
inline
# Enables the IIIF Image API 3.x endpoint, at /iiif/3.
endpoint.iiif.3.enabled
=
false
# Minimum size that will be used in info.json `sizes` keys.
endpoint.iiif.min_size
=
64
...
...
@@ -99,12 +114,12 @@ endpoint.iiif.min_tile_size = 512
# If true, requests for sizes other than those contained in an information
# response will be denied.
endpoint.iiif.
2.
restrict_to_sizes
=
false
endpoint.iiif.restrict_to_sizes
=
false
# Enables the Control Panel, at /admin.
endpoint.admin.enabled
=
false
endpoint.admin.username
=
admin
endpoint.admin.secret
=
endpoint.admin.secret
=
# Enables the administrative HTTP API. (See the user manual.)
endpoint.api.enabled
=
false
...
...
@@ -113,6 +128,14 @@ endpoint.api.enabled = false
endpoint.api.username
=
endpoint.api.secret
=
# Enables the health check endpoint, at /health.
endpoint.health.enabled
=
true
# If true, sources and caches will be checked, resulting in a more robust
# but slower health check. Set this to false if these services already have
# their own health checks.
endpoint.health.dependency_check
=
false
###########################################################################
# SOURCES
###########################################################################
...
...
@@ -169,6 +192,12 @@ HttpSource.BasicLookupStrategy.url_suffix =
HttpSource.BasicLookupStrategy.auth.basic.username
=
HttpSource.BasicLookupStrategy.auth.basic.secret
=
# Before an image is retrieved, a preliminary request is sent to check
# various characteristics. Typically this is a HEAD request, but some
# resources, such as those using pre-signed URLs, may not support HEAD
# requests. This key enables a ranged GET request to be sent instead.
HttpSource.BasicLookupStrategy.send_head_requests
=
true
# Read data in chunks when it may be more efficient. (This also may end up
# being less efficient, depending on many variables; see the user manual.)
HttpSource.chunking.enabled
=
true
...
...
@@ -187,11 +216,12 @@ HttpSource.chunking.cache.max_size = 5M
# S3Source
#----------------------------------------
# !! Endpoint URI.
# For AWS endpoints, see:
# https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
# !! Endpoint URI. Only needed for non-AWS endpoints.
S3Source.endpoint
=
# !! AWS region. Only needed for AWS endpoints.
S3Source.region
=
# !! Credentials for your AWS account.
# See: http://aws.amazon.com/security-credentials
# Note that this info can be obtained from elsewhere rather than setting
...
...
@@ -296,16 +326,14 @@ JdbcSource.connection_timeout = 10
# on the rest of the keys in this section.
processor.selection_strategy
=
AutomaticSelectionStrategy
# Built-in processors are `Java2dProcessor`, `GraphicsMagickProcessor`,
# `ImageMagickProcessor`, `TurboJpegProcessor`, `KakaduNativeProcessor`,
# `KakaduDemoProcessor`, `OpenJpegProcessor`, `JaiProcessor`,
# Built-in processors are `Java2dProcessor`, TurboJpegProcessor`,
# `KakaduNativeProcessor`, `OpenJpegProcessor`, `GrokProcessor`,`JaiProcessor`,
# `PdfBoxProcessor`, and `FfmpegProcessor`.
# Some of these have third-party dependencies and won't work out-of-the-box.
# These format-specific definitions are optional.
processor.ManualSelectionStrategy.avi
=
FfmpegProcessor
processor.ManualSelectionStrategy.bmp
=
processor.ManualSelectionStrategy.dcm
=
ImageMagickProcessor
processor.ManualSelectionStrategy.flv
=
FfmpegProcessor
processor.ManualSelectionStrategy.gif
=
processor.ManualSelectionStrategy.jp2
=
KakaduNativeProcessor
...
...
@@ -317,7 +345,7 @@ processor.ManualSelectionStrategy.pdf = PdfBoxProcessor
processor.ManualSelectionStrategy.png
=
processor.ManualSelectionStrategy.tif
=
processor.ManualSelectionStrategy.webm
=
FfmpegProcessor
processor.ManualSelectionStrategy.
webp
=
ImageMagickProcessor
processor.ManualSelectionStrategy.
xpm
=
# Fall back to this processor for any formats not assigned above.
processor.ManualSelectionStrategy.fallback
=
Java2dProcessor
...
...
@@ -342,6 +370,10 @@ processor.stream_retrieval_strategy = StreamStrategy
# * `AbortStrategy` causes the request to fail.
processor.fallback_retrieval_strategy
=
DownloadStrategy
# If true, images stored in the source cache for which no format can be
# inferred will be purged.
processor.purge_incompatible_from_source_cache
=
false
# Resolution of vector rasterization (of e.g. PDFs) at a scale of 1.
processor.dpi
=
150
...
...
@@ -356,17 +388,14 @@ processor.background_color = white
processor.downscale_filter
=
bicubic
processor.upscale_filter
=
bicubic
# If true, images are downscaled in a linear color space, which is more
# accurate. This only works with mono-resolution (non-pyramidal) images. It
# also may impair performance.
processor.downscale_linear
=
false
# Intensity of an unsharp mask from 0 to 1.
processor.sharpen
=
0
# Attempts to copy source image metadata (EXIF, IPTC, XMP) into derivative
# images. (This is not foolproof; see the user manual.)
processor.metadata.preserve
=
false
# Whether to auto-rotate images using the EXIF `Orientation` field.
# The check for this field can impair performance slightly.
processor.metadata.respect_orientation
=
false
# Progressive JPEGs are usually more compact.
processor.jpg.progressive
=
true
...
...
@@ -392,6 +421,7 @@ processor.imageio.png.reader =
processor.imageio.png.writer
=
processor.imageio.tif.reader
=
processor.imageio.tif.writer
=
processor.imageio.xpm.reader
=
#----------------------------------------
# FfmpegProcessor
...
...
@@ -402,36 +432,30 @@ processor.imageio.tif.writer =
FfmpegProcessor.path_to_binaries
=
#----------------------------------------
# GraphicsMagickProcessor
#----------------------------------------
# !! Optional absolute path of the directory containing the GraphicsMagick
# binary. Overrides the PATH.
GraphicsMagickProcessor.path_to_binaries
=
#----------------------------------------
# ImageMagickProcessor
# OpenJpegProcessor
#----------------------------------------
#
!!
Optional absolute path of the directory containing
the ImageMagick
#
binary.
Overrides the PATH.
ImageMagick
Processor.path_to_binaries
=
# Optional absolute path of the directory containing
opj_decompress.
# Overrides the PATH.
OpenJpeg
Processor.path_to_binaries
=
#----------------------------------------
#
KakaduDemo
Processor
#
Grok
Processor
#----------------------------------------
# Optional absolute path of the directory containing
kdu_expand
.
# Optional absolute path of the directory containing
grk_decompress
.
# Overrides the PATH.
KakaduDemo
Processor.path_to_binaries
=
Grok
Processor.path_to_binaries
=
#----------------------------------------
#
OpenJpeg
Processor
#
PdfBox
Processor
#----------------------------------------
# Optional absolute path of the directory containing opj_decompress.
# Overrides the PATH.
OpenJpegProcessor.path_to_binaries
=
# The following will enable disk to be used as well as memory during
# PDF loading in PdfBoxProcessor. If `max_memory_bytes` is -1 it
# will use unlimited memory.
processor.pdf.scratch_file_enabled
=
false
processor.pdf.max_memory_bytes
=
-1
###########################################################################
# CLIENT-SIDE CACHING
...
...
@@ -556,11 +580,12 @@ JdbcCache.info_table = info_cache
# S3Cache
#----------------------------------------
# !! Endpoint URI.
# For AWS endpoints, see:
# https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
# !! Endpoint URI. Only needed for non-AWS endpoints.
S3Cache.endpoint
=
# !! AWS region. Only needed for AWS endpoints.
S3Cache.region
=
# !! Credentials for your AWS account.
# See: http://aws.amazon.com/security-credentials
# Note that this info can be obtained from elsewhere rather than setting it
...
...
@@ -574,10 +599,6 @@ S3Cache.bucket.name =
# !! String that will be prefixed to object keys.
S3Cache.object_key_prefix
=
# !! Maximum number of concurrent HTTP connections to AWS. Leave blank to
# use the default.
S3Cache.max_connections
=
#----------------------------------------
# AzureStorageCache
#----------------------------------------
...
...
@@ -607,14 +628,14 @@ RedisCache.database = 0
# OVERLAYS
###########################################################################
# Whether to enable overlays.
overlays.enabled
=
false
# Controls how overlays are configured. `BasicStrategy` will use the
# `overlays.BasicStrategy.*` keys in this section. `ScriptStrategy` will
# use a delegate method. (See the user manual.)
overlays.strategy
=
BasicStrategy
# Whether to enable overlays using the BasicStrategy.
overlays.BasicStrategy.enabled
=
false
# `image` or `string`.
overlays.BasicStrategy.type
=
image
...
...
@@ -624,7 +645,7 @@ overlays.BasicStrategy.image = /path/to/overlay.png
# Overlay text.
overlays.BasicStrategy.string
=
Copyright © My Great Organization
\n
All rights reserved.
# For possible values, launch with the -
Dcantaloupe.
list
_
fonts
option
.
# For
a list of
possible values, launch with the -list
-
fonts
argument
.
overlays.BasicStrategy.string.font
=
Helvetica
# Font size in points.
...
...
@@ -656,7 +677,7 @@ overlays.BasicStrategy.string.background.color = rgba(0, 0, 0, 100)
# Allowed values: `top left`, `top center`, `top right`, `left center`,
# `center`, `right center`, `bottom left`, `bottom center`, `bottom right`,
# `repeat` (images only).
# `repeat` (images
only), `scaled` (images
only).
overlays.BasicStrategy.position
=
bottom right
# Pixel margin between the overlay and the image edge. Does not apply to
...
...
@@ -671,13 +692,6 @@ overlays.BasicStrategy.output_width_threshold = 400
# Set to 0 to add the overlay regardless.
overlays.BasicStrategy.output_height_threshold
=
300
###########################################################################
# REDACTIONS
###########################################################################
# See the user manual for information about how redactions work.
redaction.enabled
=
false
###########################################################################
# LOGGING
###########################################################################
...
...
@@ -687,15 +701,18 @@ redaction.enabled = false
#----------------------------------------
# `trace`, `debug`, `info`, `warn`, `error`, `all`, or `off`
log.application.level
=
warn
log.application.level
=
info
log.application.ConsoleAppender.enabled
=
true
log.application.ConsoleAppender.logstash.enabled
=
true
# N.B.: Don't enable FileAppender and RollingFileAppender simultaneously!
log.application.FileAppender.enabled
=
false
log.application.FileAppender.logstash.enabled
=
false
log.application.FileAppender.pathname
=
/path/to/logs/application.log
log.application.RollingFileAppender.enabled
=
false
log.application.RollingFileAppender.logstash.enabled
=
false
log.application.RollingFileAppender.pathname
=
/path/to/logs/application.log
log.application.RollingFileAppender.policy
=
TimeBasedRollingPolicy
log.application.RollingFileAppender.TimeBasedRollingPolicy.filename_pattern
=
/path/to/logs/application-%d{yyyy-MM-dd}.log
...
...
@@ -717,9 +734,11 @@ log.application.SyslogAppender.facility = LOCAL0
# N.B.: Don't enable FileAppender and RollingFileAppender simultaneously!
log.error.FileAppender.enabled
=
false
log.error.FileAppender.logstash.enabled
=
false
log.error.FileAppender.pathname
=
/path/to/logs/error.log
log.error.RollingFileAppender.enabled
=
false
log.error.RollingFileAppender.logstash.enabled
=
false
log.error.RollingFileAppender.pathname
=
/path/to/logs/error.log
log.error.RollingFileAppender.policy
=
TimeBasedRollingPolicy
log.error.RollingFileAppender.TimeBasedRollingPolicy.filename_pattern
=
/path/to/logs/error-%d{yyyy-MM-dd}.log
...
...
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