From 405da28cd35221c467f148d7a9572ad3c5be2dba Mon Sep 17 00:00:00 2001 From: Angel Nunez Mencias Date: Sun, 1 May 2022 10:40:55 +0200 Subject: [PATCH] [paperless] Add hhtp(s) prefix to PAPERLESS_URL (#1547) --- charts/stable/paperless/Chart.yaml | 6 +++--- charts/stable/paperless/README.md | 8 ++++---- charts/stable/paperless/templates/common.yaml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/stable/paperless/Chart.yaml b/charts/stable/paperless/Chart.yaml index 1d135771..dd4180f2 100644 --- a/charts/stable/paperless/Chart.yaml +++ b/charts/stable/paperless/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: ngx-1.7.0 description: Paperless - Index and archive all of your scanned paper documents name: paperless -version: 8.7.0 +version: 8.7.1 kubeVersion: ">=1.16.0-0" keywords: - paperless @@ -30,5 +30,5 @@ dependencies: condition: redis.enabled annotations: artifacthub.io/changes: | - - kind: added - description: Set PAPERLESS_URL automatically + - kind: changed + description: Fix PAPERLESS_URL default to include http(s) diff --git a/charts/stable/paperless/README.md b/charts/stable/paperless/README.md index ca682d89..db284300 100644 --- a/charts/stable/paperless/README.md +++ b/charts/stable/paperless/README.md @@ -1,6 +1,6 @@ # paperless -![Version: 8.7.0](https://img.shields.io/badge/Version-8.7.0-informational?style=flat-square) ![AppVersion: ngx-1.7.0](https://img.shields.io/badge/AppVersion-ngx--1.7.0-informational?style=flat-square) +![Version: 8.7.1](https://img.shields.io/badge/Version-8.7.1-informational?style=flat-square) ![AppVersion: ngx-1.7.0](https://img.shields.io/badge/AppVersion-ngx--1.7.0-informational?style=flat-square) Paperless - Index and archive all of your scanned paper documents @@ -96,15 +96,15 @@ N/A ## Changelog -### Version 8.7.0 +### Version 8.7.1 #### Added -* Set PAPERLESS_URL automatically +N/A #### Changed -N/A +* Fix PAPERLESS_URL default to include http(s) #### Fixed diff --git a/charts/stable/paperless/templates/common.yaml b/charts/stable/paperless/templates/common.yaml index 09b4bbc8..13801ed4 100644 --- a/charts/stable/paperless/templates/common.yaml +++ b/charts/stable/paperless/templates/common.yaml @@ -4,7 +4,7 @@ {{/* Append the hardcoded settings */}} {{- define "paperless.harcodedValues" -}} env: - PAPERLESS_URL: {{ (first .Values.ingress.main.hosts).host }} + PAPERLESS_URL: http{{if ne ( len .Values.ingress.main.tls ) 0 }}s{{end}}://{{ (first .Values.ingress.main.hosts).host }} {{- end -}} {{- $_ := merge .Values (include "paperless.harcodedValues" . | fromYaml) -}}