From 2cbd3a10350e616fb13918668e6b8b277e2a6183 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sat, 12 Mar 2022 07:56:55 +0200 Subject: [PATCH] chore(paperless-ng): Update sources to ngx, add option, keep trash persistent (#2135) --- charts/stable/paperless-ng/Chart.yaml | 9 +++++---- charts/stable/paperless-ng/questions.yaml | 14 ++++++++++++++ charts/stable/paperless-ng/values.yaml | 3 +++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/charts/stable/paperless-ng/Chart.yaml b/charts/stable/paperless-ng/Chart.yaml index 4a91060c05a..05f869bfa9e 100644 --- a/charts/stable/paperless-ng/Chart.yaml +++ b/charts/stable/paperless-ng/Chart.yaml @@ -1,9 +1,9 @@ apiVersion: v2 kubeVersion: ">=1.16.0-0" name: paperless-ng -version: 2.0.4 +version: 2.0.5 appVersion: "1.5.0" -description: Paperless-ng is an application by Daniel Quinn and contributors that indexes your scanned documents. +description: Paperless-ngx is an application by Daniel Quinn and contributors that indexes your scanned documents. type: application deprecated: false home: https://github.com/truecharts/apps/tree/master/charts/stable/paperless-ng @@ -11,7 +11,8 @@ icon: https://truecharts.org/_static/img/appicons/paperless-ng.png keywords: - paperless-ng sources: - - https://hub.docker.com/r/linuxserver/paperless-ng + - https://github.com/paperless-ngx/paperless-ngx + - https://paperless-ngx.readthedocs.io/en/latest/ dependencies: - name: common repository: https://truecharts.org @@ -30,6 +31,6 @@ maintainers: url: https://truecharts.org annotations: truecharts.org/catagories: | - - incubator + - productivity truecharts.org/SCALE-support: "true" truecharts.org/grade: U diff --git a/charts/stable/paperless-ng/questions.yaml b/charts/stable/paperless-ng/questions.yaml index 87da8d15861..f74c7f57dd2 100644 --- a/charts/stable/paperless-ng/questions.yaml +++ b/charts/stable/paperless-ng/questions.yaml @@ -100,6 +100,20 @@ questions: schema: type: string default: "" + - variable: env + group: "Container Configuration" + label: "Image Environment" + schema: + additional_attrs: true + type: dict + attrs: + - variable: PAPERLESS_WEBSERVER_WORKERS + label: "PAPERLESS_WEBSERVER_WORKERS" + description: "The number of worker processes the webserver should spawn." + schema: + type: int + required: true + default: 2 # Include{containerConfig} - variable: service diff --git a/charts/stable/paperless-ng/values.yaml b/charts/stable/paperless-ng/values.yaml index edf98fc3d4c..61ef9269403 100644 --- a/charts/stable/paperless-ng/values.yaml +++ b/charts/stable/paperless-ng/values.yaml @@ -17,7 +17,9 @@ secret: PAPERLESS_ADMIN_MAIL: "admin@admin.com" env: + PAPERLESS_PORT: "{{ .Values.service.main.ports.main.targetPort }}" PAPERLESS_DATA_DIR: "/data/" + PAPERLESS_TRASH_DIR: "/data/trash/" PAPERLESS_CONSUMPTION_DIR: "/consume/" PAPERLESS_MEDIA_ROOT: "/media/" USERMAP_UID: "{{ .Values.security.PUID }}" @@ -26,6 +28,7 @@ env: PAPERLESS_DBNAME: "{{ .Values.postgresql.postgresqlDatabase }}" PAPERLESS_DBUSER: "{{ .Values.postgresql.postgresqlUsername }}" PAPERLESS_DBPORT: "5432" + PAPERLESS_WEBSERVER_WORKERS: 2 envValueFrom: PAPERLESS_DBPASS: