1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2026-03-14 13:55:44 +01:00

Encryption is disable by default

This commit is contained in:
Vincent LAURENT 2024-08-01 16:31:45 +02:00
commit 9aa0569d46
3 changed files with 8 additions and 4 deletions

View file

@ -7,7 +7,7 @@ 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
ENV PDF_STORAGE_ENCRYPTION=false
RUN apt update && \
apt install -y vim locales gettext-base librsvg2-bin pdftk imagemagick potrace ghostscript gpg && \

View file

@ -66,7 +66,11 @@ if ($f3->get('GET.lang')) {
}
if (!$f3->exists('PDF_STORAGE_ENCRYPTION')) {
$f3->set('PDF_STORAGE_ENCRYPTION', GPGCryptography::isGpgInstalled());
$f3->set('PDF_STORAGE_ENCRYPTION', false);
}
if($f3->get('PDF_STORAGE_ENCRYPTION') && !GPGCryptography::isGpgInstalled()) {
$f3->set('PDF_STORAGE_ENCRYPTION', false);
}
if ($f3->exists('NSS3_DIRECTORY') && $f3->exists('NSS3_PASSWORD') && $f3->exists('NSS3_NICK')) {

View file

@ -16,8 +16,8 @@ PDF_STORAGE_PATH=/path/to/folder
;Declare your public domain here if you can't handle location rewriting through your reverse proxy.
;REVERSE_PROXY_URL=http://127.0.0.1:8080
; Encryption activation (default activation if GPG is installed)
;PDF_STORAGE_ENCRYPTION=true
; Encryption activation (need GPG is installed)
;PDF_STORAGE_ENCRYPTION=false
;NSS3 configuration (used to sign pdf with pdfsig)
;NSS3_DIRECTORY=/path/to/nss3