mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-12-06 01:43:12 +08:00
add imagor as thumbnail generator
thumbnails/imagor.yml runs ghcr.io/cshum/imagor-magick and points WEBDAV_THUMBNAILS_GENERATOR_URL at it. The built-in thumbnails service is no longer started, it is going to lose libvips and with it most formats. All COMPOSE_FILE examples include the new file. imagor only gets unsigned /unsafe/ URLs from webdav, so it must only be reachable on opencloud-net. It is configured with the same limits as the built-in service and only accepts uploads, it never fetches URLs. On top of the built-in list we announce previews for heic, heif, avif, jp2, psd, tga, pcx, svg and ico. I checked each against a running stack. pdf is read by imagor, but webdav 9.0.0 only passes image types to the generator. jxl ends up as application/octet-stream in reva, so it would need a mime mapping first. OC_EXCLUDE_RUN_SERVICES is now set by imagor.yml and the idm files, and compose keeps only the value of the last file. Each file prepends the new EXCLUDE_ADDITIONAL_SERVICES, so combining them works when it lists all of them: EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails related: https://github.com/opencloud-eu/opencloud/issues/3912 Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
44
.env.example
44
.env.example
@@ -10,24 +10,24 @@ INSECURE=true
|
||||
## Features ##
|
||||
# The following variable is a convenience variable to enable or disable features of this compose project.
|
||||
# Example: if you want to use traefik and letsencrypt, you can set the variable to
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:traefik/opencloud.yml
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:traefik/opencloud.yml
|
||||
# This enables you to just run `docker compose up -d` and the compose files will be added to the stack.
|
||||
# As alternative approach you can run `docker compose -f docker-compose.yml -f docker-compose.traefik.yml up -d`
|
||||
# Default: OpenCloud and Collabora with traefik and letsencypt
|
||||
# This needs DNS entries for the domain names used in the .env file.
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml
|
||||
# If you want to use the external proxy, you can use the following combination.
|
||||
# DNS entries and certificates need to be managed by the external environment.
|
||||
# The domain names need to be entered into the .env file.
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:external-proxy/opencloud.yml:external-proxy/collabora.yml
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:external-proxy/opencloud.yml:external-proxy/collabora.yml
|
||||
# Keycloak Shared User Directory
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml
|
||||
# External IDP
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/external-idp.yml
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/external-idp.yml
|
||||
# Euro Office with traefik and letsencrypt
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/euro-office.yml:traefik/opencloud.yml:traefik/euro-office.yml
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/euro-office.yml:traefik/opencloud.yml:traefik/euro-office.yml
|
||||
# Euro Office with external proxy (Nginx, Caddy, etc.)
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/euro-office.yml:external-proxy/opencloud.yml:external-proxy/euro-office.yml
|
||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/euro-office.yml:external-proxy/opencloud.yml:external-proxy/euro-office.yml
|
||||
|
||||
## Traefik Settings ##
|
||||
# Note: Traefik is always enabled and can't be disabled.
|
||||
@@ -193,6 +193,14 @@ SMTP_INSECURE=
|
||||
# IMPORTANT: Add any services to the startup list comma separated like "notifications,antivirus" etc.
|
||||
START_ADDITIONAL_SERVICES=""
|
||||
|
||||
# Services that must not be started, comma separated.
|
||||
# The compose files that replace a built-in service exclude it themselves, but docker
|
||||
# compose only keeps the value of the last file in COMPOSE_FILE. When combining
|
||||
# thumbnails/imagor.yml with idm/ldap-keycloak.yml or idm/external-idp.yml, list
|
||||
# all of them here, so the result does not depend on the order of the files:
|
||||
#EXCLUDE_ADDITIONAL_SERVICES="idm,idp,thumbnails"
|
||||
EXCLUDE_ADDITIONAL_SERVICES=""
|
||||
|
||||
|
||||
## Default Enabled Services ##
|
||||
|
||||
@@ -210,6 +218,28 @@ START_ADDITIONAL_SERVICES=""
|
||||
# like advanced OCR or specific image processing capabilities.
|
||||
TIKA_IMAGE=
|
||||
|
||||
### Imagor Thumbnail Generator ###
|
||||
# Imagor makes the thumbnails when thumbnails/imagor.yml is in COMPOSE_FILE, which all
|
||||
# examples above do. Without it, the thumbnails service built into OpenCloud is used,
|
||||
# which only supports a minimal set of formats.
|
||||
# Image of the imagor container. The magick variant is needed to read ICO files.
|
||||
# Defaults to "ghcr.io/cshum/imagor-magick"
|
||||
IMAGOR_DOCKER_IMAGE=
|
||||
# Defaults to "1.9.11"
|
||||
IMAGOR_DOCKER_TAG=
|
||||
# Mime types a preview is attempted for on top of the built-in list
|
||||
# (png, jpeg, gif, webp, bmp, tiff, text, audio covers and geogebra).
|
||||
# Defaults to "image/heic,image/heif,image/avif,image/jp2,image/vnd.adobe.photoshop,image/x-tga,image/x-pcx,image/svg+xml,image/x-icon,image/vnd.microsoft.icon"
|
||||
IMAGOR_ADDITIONAL_SOURCE_TYPES=
|
||||
# Maximum size of an image a thumbnail is made of, in bytes. Used by OpenCloud and imagor.
|
||||
# Defaults to "50000000"
|
||||
IMAGOR_MAX_INPUT_FILE_SIZE=
|
||||
# Maximum width, height and number of animation frames of a source image.
|
||||
# Default to "7680", "7680" and "100"
|
||||
IMAGOR_MAX_WIDTH=
|
||||
IMAGOR_MAX_HEIGHT=
|
||||
IMAGOR_MAX_ANIMATION_FRAMES=
|
||||
|
||||
### IMPORTANT Note for Online Office Apps ###
|
||||
# To avoid app interlocking issues, you should select only one app to be active/configured.
|
||||
# This is due the fact that there is currently no app interlocking for the same file and one
|
||||
|
||||
Reference in New Issue
Block a user