From bf766960f3a0e016bd3121922685834dc535634b Mon Sep 17 00:00:00 2001 From: JigSaw Date: Wed, 3 Jan 2024 13:46:13 +0100 Subject: [PATCH] fix(stirling-pdf): various fixes (#1950) * feat(stirling-pdf): add docker security params * fix(stirling-pdf): typo in multiple paths * feat(stirling-pdf): added logs path * fix(stirling-pdf): bumped to tess 5 * chore(stirling-pdf): bumped tipi app version --- apps/stirling-pdf/config.json | 10 ++++++++-- apps/stirling-pdf/docker-compose.yml | 13 ++++++++----- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/apps/stirling-pdf/config.json b/apps/stirling-pdf/config.json index 59f135bc..7a1eee16 100644 --- a/apps/stirling-pdf/config.json +++ b/apps/stirling-pdf/config.json @@ -5,7 +5,7 @@ "available": true, "exposable": true, "id": "stirling-pdf", - "tipi_version": 14, + "tipi_version": 15, "version": "0.18.1", "categories": [ "data", @@ -15,7 +15,13 @@ "short_desc": "Powerful locally hosted web based PDF manipulation tool.", "author": "Frooodle", "source": "https://github.com/Frooodle/Stirling-PDF/", - "form_fields": [], + "form_fields": [ + { + "type": "boolean", + "label": "Docker > Enable Security", + "env_variable": "STIRLING_PDF_DOCKER_ENABLE_SECURITY" + } + ], "supported_architectures": [ "arm64", "amd64" diff --git a/apps/stirling-pdf/docker-compose.yml b/apps/stirling-pdf/docker-compose.yml index 681a7293..699cd998 100644 --- a/apps/stirling-pdf/docker-compose.yml +++ b/apps/stirling-pdf/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.7" +version: "3.9" services: stirling-pdf: image: ghcr.io/frooodle/s-pdf:0.18.1 @@ -8,9 +8,12 @@ services: ports: - ${APP_PORT}:8080 volumes: - - ${APP_DATA_DIR}/datatrainingData:/usr/share/tesseract-ocr/4.00/tessdata #Required for extra OCR languages - - ${APP_DATA_DIR}/dataextraConfigs:/configs - - ${APP_DATA_DIR}/datacustomFiles:/customFiles/ + - ${APP_DATA_DIR}/data/trainingData:/usr/share/tesseract-ocr/5/tessdata #Required for extra OCR languages + - ${APP_DATA_DIR}/data/extraConfigs:/configs + - ${APP_DATA_DIR}/data/customFiles:/customFiles/ + - ${APP_DATA_DIR}/data/logs:/logs/ + environment: + - DOCKER_ENABLE_SECURITY=${STIRLING_PDF_DOCKER_ENABLE_SECURITY-false} networks: - tipi_main_network labels: @@ -37,4 +40,4 @@ services: traefik.http.routers.stirling-pdf-local.rule: Host(`stirling-pdf.${LOCAL_DOMAIN}`) traefik.http.routers.stirling-pdf-local.entrypoints: websecure traefik.http.routers.stirling-pdf-local.service: stirling-pdf - traefik.http.routers.stirling-pdf-local.tls: true + traefik.http.routers.stirling-pdf-local.tls: true \ No newline at end of file