add unittest for external images

This commit is contained in:
phail
2022-10-22 00:44:32 +02:00
parent 09b5bd17f2
commit f1f5227ccd
7 changed files with 52 additions and 6 deletions

View File

@@ -515,6 +515,13 @@ requires are as follows:
image: gotenberg/gotenberg:7.4
restart: unless-stopped
# The gotenberg chromium route is used to convert .eml files. We do not
# want to allow external content like tracking pixels or even javascript.
command:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
tika:
image: ghcr.io/paperless-ngx/tika:latest
restart: unless-stopped

View File

@@ -127,9 +127,14 @@ If using docker-compose, this is achieved by the following configuration change
gotenberg:
image: gotenberg/gotenberg:7.4
restart: unless-stopped
# The gotenberg chromium route is used to convert .eml files. We do not
# want to allow external content like tracking pixels or even javascript.
command:
- "gotenberg"
- "--api-timeout=60"
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
- "--api-timeout=60"
Permission denied errors in the consumption directory
#####################################################