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:
parent
a0e6590181
commit
9aa0569d46
3 changed files with 8 additions and 4 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
6
app.php
6
app.php
|
|
@ -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')) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue