diff --git a/defaults/main.yml b/defaults/main.yml index 092af7a..9c9b971 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,7 @@ --- # Cantaloupe version -cantaloupe_version: 4.1.7 +cantaloupe_version: 4.1.9 # Where to extract the cantaloupe archive cantaloupe_install_root: /opt # Target of a symlink from the extracted cantaloupe archive diff --git a/templates/cantaloupe.properties.j2 b/templates/cantaloupe.properties.j2 index 8fac8f8..9cfbb87 100644 --- a/templates/cantaloupe.properties.j2 +++ b/templates/cantaloupe.properties.j2 @@ -44,6 +44,15 @@ base_uri = {{ cantaloupe_base_uri }} # percent-encoded version in URLs. slash_substitute = {{ cantaloupe_slash_substitute }} +# Parses an identifier's scale constraint suffix. +# This key only applies to versions >= 4.1.9 and < 5.0. +scale_constraint_suffix.pattern = -(\d+):(\d+)\b + +# Converts a scale constraint suffix to its URL format. {n} and {d} are the +# numerator and denominator, respectively. +# This key only applies to versions >= 4.1.9 and < 5.0. +scale_constraint_suffix.format = -{n}:{d} + # Maximum number of pixels to return in a response, to prevent overloading # the server. Requests for more pixels than this will receive an error # response. Set to 0 for no maximum.