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:
@@ -28,7 +28,9 @@ services:
|
||||
PROXY_ROLE_ASSIGNMENT_DRIVER: ${PROXY_ROLE_ASSIGNMENT_DRIVER:-oidc}
|
||||
OC_OIDC_ISSUER: ${IDP_ISSUER_URL:-https://keycloak.opencloud.test/realms/openCloud}
|
||||
# This specifies to start all services except idm and idp. These are replaced by external services.
|
||||
OC_EXCLUDE_RUN_SERVICES: idm,idp
|
||||
# compose takes this value from the last file in COMPOSE_FILE, so when combining with
|
||||
# thumbnails/imagor.yml set EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails
|
||||
OC_EXCLUDE_RUN_SERVICES: ${EXCLUDE_ADDITIONAL_SERVICES:-}${EXCLUDE_ADDITIONAL_SERVICES:+,}idm,idp
|
||||
# IdP specific configuration for auto-provisioning
|
||||
OC_LDAP_SERVER_WRITE_ENABLED: "true"
|
||||
PROXY_AUTOPROVISION_ACCOUNTS: "true"
|
||||
|
||||
@@ -19,7 +19,9 @@ services:
|
||||
FRONTEND_READONLY_USER_ATTRIBUTES: "user.onPremisesSamAccountName,user.displayName,user.mail,user.passwordProfile,user.accountEnabled,user.appRoleAssignments"
|
||||
OC_LDAP_SERVER_WRITE_ENABLED: "false" # the ldap is managed by Keycloak, so it is not writable by OpenCloud
|
||||
# This specifies to start all services except idm and idp. These are replaced by external services.
|
||||
OC_EXCLUDE_RUN_SERVICES: idm,idp
|
||||
# compose takes this value from the last file in COMPOSE_FILE, so when combining with
|
||||
# thumbnails/imagor.yml set EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails
|
||||
OC_EXCLUDE_RUN_SERVICES: ${EXCLUDE_ADDITIONAL_SERVICES:-}${EXCLUDE_ADDITIONAL_SERVICES:+,}idm,idp
|
||||
# Keycloak IDP specific configuration
|
||||
PROXY_AUTOPROVISION_ACCOUNTS: "false"
|
||||
PROXY_ROLE_ASSIGNMENT_DRIVER: "oidc"
|
||||
|
||||
Reference in New Issue
Block a user