[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 appVersion: ngx-1.7.0
description: Paperless - Index and archive all of your scanned paper documents description: Paperless - Index and archive all of your scanned paper documents
name: paperless name: paperless
version: 8.7.0 version: 8.7.1
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- paperless - paperless
@ -30,5 +30,5 @@ dependencies:
condition: redis.enabled condition: redis.enabled
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: added - kind: changed
description: Set PAPERLESS_URL automatically description: Fix PAPERLESS_URL default to include http(s)

View File

@ -1,6 +1,6 @@
# paperless # 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 Paperless - Index and archive all of your scanned paper documents
@ -96,15 +96,15 @@ N/A
## Changelog ## Changelog
### Version 8.7.0 ### Version 8.7.1
#### Added #### Added
* Set PAPERLESS_URL automatically N/A
#### Changed #### Changed
N/A * Fix PAPERLESS_URL default to include http(s)
#### Fixed #### Fixed

View File

@ -4,7 +4,7 @@
{{/* Append the hardcoded settings */}} {{/* Append the hardcoded settings */}}
{{- define "paperless.harcodedValues" -}} {{- define "paperless.harcodedValues" -}}
env: 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 -}} {{- end -}}
{{- $_ := merge .Values (include "paperless.harcodedValues" . | fromYaml) -}} {{- $_ := merge .Values (include "paperless.harcodedValues" . | fromYaml) -}}