fix(grampsweb): improve configuration (add MEDIA_PREFIX_TREE)
This commit is contained in:
parent
dac942fc6f
commit
5706e787d6
5 changed files with 22 additions and 11 deletions
|
@ -3,7 +3,7 @@ name: grampsweb
|
||||||
description: A Helm chart for gramps web
|
description: A Helm chart for gramps web
|
||||||
icon: https://raw.githubusercontent.com/gramps-project/Gramps.js/main/images/icon512.png
|
icon: https://raw.githubusercontent.com/gramps-project/Gramps.js/main/images/icon512.png
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.13
|
version: 0.1.14
|
||||||
# renovate: image=ghcr.io/gramps-project/grampsweb
|
# renovate: image=ghcr.io/gramps-project/grampsweb
|
||||||
appVersion: "24.7.0"
|
appVersion: "24.7.0"
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
= grampsweb
|
= grampsweb
|
||||||
|
|
||||||
image::https://img.shields.io/badge/Version-0.1.13-informational?style=flat-square[Version: 0.1.13]
|
image::https://img.shields.io/badge/Version-0.1.14-informational?style=flat-square[Version: 0.1.14]
|
||||||
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
||||||
image::https://img.shields.io/badge/AppVersion-24.7.0-informational?style=flat-square[AppVersion: 24.7.0]
|
image::https://img.shields.io/badge/AppVersion-24.7.0-informational?style=flat-square[AppVersion: 24.7.0]
|
||||||
== Maintainers
|
== Maintainers
|
||||||
|
@ -80,7 +80,7 @@ helm uninstall grampsweb-release
|
||||||
| gramps.baseURL
|
| gramps.baseURL
|
||||||
| string
|
| string
|
||||||
| `"https://gramps.example.org"`
|
| `"https://gramps.example.org"`
|
||||||
|
|
| Base URL where the API can be reached (e.g. https://mygramps.mydomain.com/). This is necessary e.g. to build correct passwort reset links
|
||||||
|
|
||||||
| gramps.mail.from
|
| gramps.mail.from
|
||||||
| string
|
| string
|
||||||
|
@ -112,10 +112,15 @@ helm uninstall grampsweb-release
|
||||||
| `nil`
|
| `nil`
|
||||||
| SMTP server username
|
| SMTP server username
|
||||||
|
|
||||||
|
| gramps.mediaPrefixTree
|
||||||
|
| bool
|
||||||
|
| `false`
|
||||||
|
| whether or not to use a separate subfolder for the media files of each tree. Defaults to False, but strongly recommend to use True in a multi-tree setup
|
||||||
|
|
||||||
| gramps.tree
|
| gramps.tree
|
||||||
| string
|
| string
|
||||||
| `"Gramps Web"`
|
| `"Gramps Web"`
|
||||||
|
|
| To enable multi-tree support, the TREE config option must be set to a single asterisk `*`
|
||||||
|
|
||||||
| image.pullPolicy
|
| image.pullPolicy
|
||||||
| string
|
| string
|
||||||
|
|
|
@ -36,13 +36,6 @@ spec:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
{{- with .Values.gramps }}
|
|
||||||
env:
|
|
||||||
- name: "GRAMPSWEB_TREE"
|
|
||||||
value: "{{ .tree }}"
|
|
||||||
- name: "GRAMPSWEB_BASE_URL"
|
|
||||||
value: "{{ .baseURL }}"
|
|
||||||
{{- end }}
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ include "grampsweb.fullname" . }}
|
name: {{ include "grampsweb.fullname" . }}
|
||||||
|
|
|
@ -6,6 +6,15 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "grampsweb.labels" . | nindent 4 }}
|
{{- include "grampsweb.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
|
{{- with .Values.gramps.baseURL }}
|
||||||
|
GRAMPSWEB_BASE_URL: {{ . | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.gramps.tree }}
|
||||||
|
GRAMPSWEB_TREE: {{ . | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.gramps.mediaPrefixTree }}
|
||||||
|
GRAMPSWEB_MEDIA_PREFIX_TREE: {{ . | ternary "TRUE" "FALSE" | b64enc }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.gramps.mediaBaseDir }}
|
{{- with .Values.gramps.mediaBaseDir }}
|
||||||
GRAMPSWEB_MEDIA_BASE_DIR: {{ . | b64enc }}
|
GRAMPSWEB_MEDIA_BASE_DIR: {{ . | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -16,8 +16,12 @@ nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
gramps:
|
gramps:
|
||||||
|
# -- To enable multi-tree support, the TREE config option must be set to a single asterisk `*`
|
||||||
tree: "Gramps Web"
|
tree: "Gramps Web"
|
||||||
|
# -- Base URL where the API can be reached (e.g. https://mygramps.mydomain.com/). This is necessary e.g. to build correct passwort reset links
|
||||||
baseURL: "https://gramps.example.org"
|
baseURL: "https://gramps.example.org"
|
||||||
|
# -- whether or not to use a separate subfolder for the media files of each tree. Defaults to False, but strongly recommend to use True in a multi-tree setup
|
||||||
|
mediaPrefixTree: false
|
||||||
mail:
|
mail:
|
||||||
# -- SMTP server host (e.g. for sending password reset e-mails)
|
# -- SMTP server host (e.g. for sending password reset e-mails)
|
||||||
host:
|
host:
|
||||||
|
|
Loading…
Add table
Reference in a new issue