[paperless] Add hhtp(s) prefix to PAPERLESS_URL (#1547)

This commit is contained in:
Angel Nunez Mencias 2022-05-01 10:40:55 +02:00 committed by GitHub
parent c0e176fcb9
commit 405da28cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -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)

View File

@ -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

View File

@ -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) -}}