Merge pull request #35 from Tooa/1250-gotenberg-follow-up

fix(gotenberg): use command flags
This commit is contained in:
Felix E 2022-03-19 11:03:32 +01:00 committed by GitHub
commit c8ac686b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 10 deletions

View File

@ -79,8 +79,9 @@ services:
gotenberg: gotenberg:
image: gotenberg/gotenberg:7 image: gotenberg/gotenberg:7
restart: unless-stopped restart: unless-stopped
environment: command:
CHROMIUM_DISABLE_ROUTES: 1 - "gotenberg"
- "--chromium-disable-routes=true"
tika: tika:
image: apache/tika image: apache/tika

View File

@ -68,8 +68,9 @@ services:
gotenberg: gotenberg:
image: gotenberg/gotenberg:7 image: gotenberg/gotenberg:7
restart: unless-stopped restart: unless-stopped
environment: command:
CHROMIUM_DISABLE_ROUTES: 1 - "gotenberg"
- "--chromium-disable-routes=true"
tika: tika:
image: apache/tika image: apache/tika

View File

@ -462,8 +462,9 @@ requires are as follows:
gotenberg: gotenberg:
image: gotenberg/gotenberg:7 image: gotenberg/gotenberg:7
restart: unless-stopped restart: unless-stopped
environment: command:
CHROMIUM_DISABLE_ROUTES: 1 - "gotenberg"
- "--chromium-disable-routes=true"
tika: tika:
image: apache/tika image: apache/tika

View File

@ -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. 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. When conversion takes longer, Gotenberg raises this error.
You can increase the timeout by configuring an environment variable for Gotenberg (see also `here <https://gotenberg.dev/docs/modules/api#properties>`__). You can increase the timeout by configuring a command flag for Gotenberg (see also `here <https://gotenberg.dev/docs/modules/api#properties>`__).
If using docker-compose, this is achieved by the following configuration change in the ``docker-compose.yml`` file: If using docker-compose, this is achieved by the following configuration change in the ``docker-compose.yml`` file:
.. code:: yaml .. code:: yaml
@ -114,9 +114,10 @@ If using docker-compose, this is achieved by the following configuration change
gotenberg: gotenberg:
image: gotenberg/gotenberg:7 image: gotenberg/gotenberg:7
restart: unless-stopped restart: unless-stopped
environment: command:
CHROMIUM_DISABLE_ROUTES: 1 - "gotenberg"
API_PROCESS_TIMEOUT: 60 - "--chromium-disable-routes=true"
- "--api-timeout=60"
Permission denied errors in the consumption directory Permission denied errors in the consumption directory
##################################################### #####################################################