From: Tooa Date: Mon, 15 Nov 2021 08:54:51 +0000 (+0100) Subject: fix(gotenberg): use command flags X-Git-Tag: beta-1.6.1~64^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F35%2Fhead;p=thirdparty%2Fpaperless-ngx.git fix(gotenberg): use command flags Gotenberg v7 does not use environment variables anymore, but command's flags. See: https://gotenberg.dev/docs/get-started/docker-compose#modules-properties --- diff --git a/docker/compose/docker-compose.postgres-tika.yml b/docker/compose/docker-compose.postgres-tika.yml index f301b0d3cb..669d52a41a 100644 --- a/docker/compose/docker-compose.postgres-tika.yml +++ b/docker/compose/docker-compose.postgres-tika.yml @@ -77,8 +77,9 @@ services: gotenberg: image: gotenberg/gotenberg:7 restart: unless-stopped - environment: - CHROMIUM_DISABLE_ROUTES: 1 + command: + - "gotenberg" + - "--chromium-disable-routes=true" tika: image: apache/tika diff --git a/docker/compose/docker-compose.sqlite-tika.yml b/docker/compose/docker-compose.sqlite-tika.yml index f50e51aab1..9a07b3e6e2 100644 --- a/docker/compose/docker-compose.sqlite-tika.yml +++ b/docker/compose/docker-compose.sqlite-tika.yml @@ -66,8 +66,9 @@ services: gotenberg: image: gotenberg/gotenberg:7 restart: unless-stopped - environment: - CHROMIUM_DISABLE_ROUTES: 1 + command: + - "gotenberg" + - "--chromium-disable-routes=true" tika: image: apache/tika diff --git a/docs/configuration.rst b/docs/configuration.rst index 7d079a96c4..a5c1cbde5f 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -446,8 +446,9 @@ requires are as follows: gotenberg: image: gotenberg/gotenberg:7 restart: unless-stopped - environment: - CHROMIUM_DISABLE_ROUTES: 1 + command: + - "gotenberg" + - "--chromium-disable-routes=true" tika: image: apache/tika diff --git a/docs/troubleshooting.rst b/docs/troubleshooting.rst index f3ea612a0e..f56d2cd09a 100644 --- a/docs/troubleshooting.rst +++ b/docs/troubleshooting.rst @@ -106,7 +106,7 @@ You may experience these errors when using the optional TIKA integration: Gotenberg is a server that converts Office documents into PDF documents and has a default timeout of 30 seconds. When conversion takes longer, Gotenberg raises this error. -You can increase the timeout by configuring an environment variable for Gotenberg (see also `here `__). +You can increase the timeout by configuring a command flag for Gotenberg (see also `here `__). If using docker-compose, this is achieved by the following configuration change in the ``docker-compose.yml`` file: .. code:: yaml @@ -114,9 +114,10 @@ If using docker-compose, this is achieved by the following configuration change gotenberg: image: gotenberg/gotenberg:7 restart: unless-stopped - environment: - CHROMIUM_DISABLE_ROUTES: 1 - API_PROCESS_TIMEOUT: 60 + command: + - "gotenberg" + - "--chromium-disable-routes=true" + - "--api-timeout=60" Permission denied errors in the consumption directory #####################################################