]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
fix(gotenberg): use command flags 35/head
authorTooa <github@uli-fahrer.de>
Mon, 15 Nov 2021 08:54:51 +0000 (09:54 +0100)
committerTooa <github@uli-fahrer.de>
Sun, 13 Mar 2022 06:40:31 +0000 (07:40 +0100)
Gotenberg v7 does not use environment variables anymore, but command's flags.

See: https://gotenberg.dev/docs/get-started/docker-compose#modules-properties

docker/compose/docker-compose.postgres-tika.yml
docker/compose/docker-compose.sqlite-tika.yml
docs/configuration.rst
docs/troubleshooting.rst

index f301b0d3cbe5f3798e2872ff27056812ccd8c7fa..669d52a41a37b3a9a5c71145ff52f41acb6b1034 100644 (file)
@@ -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
index f50e51aab119b547fb5e36e7f09223dc531421e3..9a07b3e6e291834f48630f09c5e018001ecc84d1 100644 (file)
@@ -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
index 7d079a96c4bb5f72800bdc19c331ac1208d7bd32..a5c1cbde5fba2c4d8cd1352a4908827d67250c7e 100644 (file)
@@ -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
index f3ea612a0efc0e8c810c8c06cd54e897f5853e16..f56d2cd09ac102ca5d868ce437c408ac3337d8c4 100644 (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.
 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:
 
 .. 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
 #####################################################