diff --git a/Dockerfile b/Dockerfile index 8ed9c17..a996cbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM php:7.4-apache LABEL maintainer="Niels Lippke" -ENV VER 5.1.23 +ENV VER 5.1.24 ENV SEEDDMS_BASE=/var/www/seeddms \ SEEDDMS_HOME=/var/www/seeddms/seeddms ENV PUBLIC_CERT=${SEEDDMS_BASE}/conf/cacert.pem \ @@ -9,8 +9,11 @@ ENV PUBLIC_CERT=${SEEDDMS_BASE}/conf/cacert.pem \ FORCE_SSL=0 # Update and install necessary packages -RUN apt-get update && apt-get install --no-install-recommends gnumeric libpng-dev catdoc poppler-utils a2ps \ - id3 docx2txt tesseract-ocr tesseract-ocr-deu ocrmypdf imagemagick vim parallel dos2unix cron rsync libzip-dev -y +RUN apt-get update && apt-get install --no-install-recommends gnumeric libpng-dev catdoc poppler-utils a2ps html2text \ + id3 docx2txt tesseract-ocr tesseract-ocr-deu ocrmypdf imagemagick vim parallel dos2unix cron rsync libzip-dev \ + libmagickwand-dev -y && rm -rf /var/lib/apt/lists/* +RUN printf "\n" | pecl install imagick +RUN docker-php-ext-enable imagick RUN docker-php-ext-install gd mysqli pdo pdo_mysql zip && \ pear channel-update pear.php.net && pear install Log @@ -18,7 +21,7 @@ RUN docker-php-ext-install gd mysqli pdo pdo_mysql zip && \ RUN curl -fsSL https://downloads.sourceforge.net/project/seeddms/seeddms-${VER}/seeddms-quickstart-${VER}.tar.gz | tar -xzC /var/www RUN mv /var/www/seeddms51x /var/www/seeddms && mkdir /var/www/seeddms/backup && mkdir -p /var/www/seeddms/import/admin && \ mv /var/www/seeddms/conf /var/www/seeddms/data/conf && ln -s /var/www/seeddms/data/conf /var/www/seeddms/conf && \ - touch /var/www/seeddms/conf/ENABLE_INSTALL_TOOL + mkdir $SEEDDMS_HOME/ext && touch /var/www/seeddms/conf/ENABLE_INSTALL_TOOL # Copy settings-files COPY sources/php.ini /usr/local/etc/php/ diff --git a/README.md b/README.md index 3c320c9..24cec47 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Cron is also included to handle jobs internally (backup, index, ...). ## How to run -`docker run --name seeddms -d -v dms-data:/var/www/seeddms/data -p 8080:80 nlippke/seeddms:5.1.23` +`docker run --name seeddms -d -v dms-data:/var/www/seeddms/data -p 8080:80 nlippke/seeddms:5.1.24` or as compose file @@ -16,7 +16,7 @@ version: '2' services: dms: - image: nlippke/seeddms:5.1.23 + image: nlippke/seeddms:5.1.24 ports: - "8080:80" - "8443:443" diff --git a/sources/settings.xml b/sources/settings.xml index e6655f0..cdd6ed6 100644 --- a/sources/settings.xml +++ b/sources/settings.xml @@ -7,11 +7,29 @@ - language: default language (name of a subfolder in folder "languages") - theme: default style (name of a subfolder in folder "styles") --> - + - + - enableDropUpload: enable/disable uploading files by drag&drop + - enableRecursiveCount: enable/disable counting docs and folder recursively + - maxRecursiveCount: after this number of docs/folders precise counting will stop + - enableThemeSelector: enable/disable the theme selector on the login page + - fullSearchEngine: Either "lucene" or "sqlitefts" + - sortFoldersDefault: how to sort forders by default. u=unsorted, s=sequence, n=name + - defaultDocPosition: Default position for a new document. 'start', 'end', or '' + - defaultFolderPosition: Default position for a new folder. 'start', 'end', or '' + --> + - - - + + + - + - + - passwordStrength: minimum strength of password, set to 0 to disable + - passwordStrengthAlgorithm: algorithm used to calculate password strenght (simple or advanced) + - passwordExpiration: number of days after password expires + - passwordHistory: number of remembered passwords + - loginFailure: maximum allowed login failures before an account is disabled + - autoLoginUser: id of user used if auto login is turned on + - quota: maximum allowed space on disc for each user + - undelUserIds: ids of users which cannot be deleted + - encryptionKey: arbitrary string used for creating form tokens + - cookieLifetime: lifetime of cookie in seconds, set to 0 for session cookies + --> + - + - bindDN: use this dn for a first step bind, leave empty for annonymous bind + - bindPw: use this password for a first step bind + - filter: Additional filters which are to be checked + --> + - + @@ -97,29 +221,54 @@ - dbDatabase: database where the tables for seeddms are stored (optional - see adodb-readme) - dbUser: username for database-access - dbPass: password for database-access - --> - + - doNotCheckVersion: Whether or not to check the database schema for its correct version. + --> + - + - smtpUser: user name used for authenticating against smtp server + - smtpPassword: password used for authenticating against smtp server + --> + - - + - showMissingTranslations: set true if missing translation shall be listed at end of page + --> + - + - + - enableDuplicateSubFolderNames: allow duplicate names in a folder + - enableOwnerRevApp: allow owner of a document to review and approve + - enableSelfRevApp: allow the user current logged in to add herself as a reviewer or approver + - presetExpirationDate: set to time period if each document shall expire + - overrideMimeType: set to true if the mimetype of a document version is determined by the server + --> + - + - + - ocrmypdf.sh %s - catdoc %s - ssconvert -T Gnumeric_stf:stf_csv -S %s fd://1 - id3 -l -R %s | egrep '(Title|Artist|Album)' | sed 's/^[^:]*: //g' - id3 -l -R %s | egrep '(Title|Artist|Album)' | sed 's/^[^:]*: //g' - cat %s - cat %s - xlsx2csv %sdocx2txt %s -tesseract %s - -l deu --psm 3 --oem 3 2> /dev/null | tr '\n' ' ' + ocrmypdf.sh %s + catdoc %s + ssconvert -T Gnumeric_stf:stf_csv -S %s fd://1 + id3 -l -R %s | egrep '(Title|Artist|Album)' | sed 's/^[^:]*: //g' + id3 -l -R %s | egrep '(Title|Artist|Album)' | sed 's/^[^:]*: //g' + cat %s + cat %s + xlsx2csv %s + docx2txt %s - + tesseract %s - -l deu --psm 3 --oem 3 2> /dev/null | tr '\n' ' ' + - - convert -resize %wx '%f' '%o' - convert -density 100 -resize %wx '%f[0]' '%o' - convert -density 100 -resize %wx '%f[0]' '%o' - a2ps -1 -a1 -R -B -o - '%f' | gs -dBATCH -dNOPAUSE -sDEVICE=pngalpha -dFirstPage=1 -dLastPage=1 -dPDFFitPage -r72x72 -sOutputFile=- -q - | convert -resize %wx png:- '%o' - + + convert -resize %wx '%f' '%o' + convert -density 100 -resize %wx '%f[0]' '%o' + convert -density 100 -resize %wx '%f[0]' '%o' + a2ps -1 -a1 -R -B -o - '%f' | gs -dBATCH -dNOPAUSE -sDEVICE=pngalpha -dFirstPage=1 -dLastPage=1 -dPDFFitPage -r72x72 -sOutputFile=- -q - | convert -resize %wx png:- '%o' + + - + + + +