mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-28 01:35:06 +00:00
Started adding different assertions and checks of values, so that less invalid configuration is possible.
This commit is contained in:
parent
ad61dae136
commit
e3faff7acf
@ -16,6 +16,11 @@ stringData:
|
||||
{{- fail "When enabling the administration endpoint, a value for authentication has the supplied." -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- range $entry := .Values.docspell.server.openid -}}
|
||||
{{- if and (not $entry.provider.userUrl) (not $entry.provider.signKey) -}}
|
||||
{{- fail (printf "Failure for %s, if no userUrl is set a signKey has to be specified." $entry.provider.providerId) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if eq .Values.docspell.server.backend.signup.mode "invite" -}}
|
||||
{{- if not .Values.docspell.server.backend.signup.newInvitePassword -}}
|
||||
{{- fail "Invite password has to be set, when using signup mode 'invite'." -}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user