From 34e5685fbbd0dcbd68c479e0d5e1bcd20eb9e1f8 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Tue, 30 Jul 2024 18:39:53 +0200 Subject: [PATCH] Deploy docker file with pdf encryption --- Dockerfile | 3 ++- config/config.ini.tpl | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b13ff1a..8c33334 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,11 @@ ENV MAX_FILE_UPLOADS=201 ENV PDF_STORAGE_PATH=/data ENV DISABLE_ORGANIZATION=false ENV DEFAULT_LANGUAGE=fr_FR.UTF-8 +ENV PDF_STORAGE_ENCRYPTION=true RUN apt update && \ apt install -y vim locales gettext-base librsvg2-bin pdftk imagemagick potrace ghostscript && \ - docker-php-ext-install gettext && \ + docker-php-ext-install gettext gpg && \ rm -rf /var/lib/apt/lists/* COPY . /usr/local/signaturepdf diff --git a/config/config.ini.tpl b/config/config.ini.tpl index d515b99..9c089d9 100644 --- a/config/config.ini.tpl +++ b/config/config.ini.tpl @@ -9,3 +9,6 @@ DISABLE_ORGANIZATION=${DISABLE_ORGANIZATION} ; Manage demo link pdf : true (by default, show), false (hide), or custom link PDF_DEMO_LINK=${PDF_DEMO_LINK} + +; Encryption activation (default activation if GPG is installed) +PDF_STORAGE_ENCRYPTION=${PDF_STORAGE_ENCRYPTION}