feat(vikunja): support mailer configuration

This commit is contained in:
Jan-Niklas Weghorn 2024-09-29 14:57:52 +02:00
parent e1e4213896
commit 445a1d5f5d
7 changed files with 55 additions and 4 deletions

View File

@ -21,3 +21,4 @@
.idea/ .idea/
*.tmproj *.tmproj
.vscode/ .vscode/
vikunja-*.tgz

View File

@ -6,7 +6,7 @@ sources:
- https://kolaente.dev/vikunja/ - https://kolaente.dev/vikunja/
- https://gitlab.com/oecis/charts/-/tree/main/charts/vikunja - https://gitlab.com/oecis/charts/-/tree/main/charts/vikunja
type: application type: application
version: 0.2.0 version: 0.2.1
appVersion: "0.24.3" appVersion: "0.24.3"
dependencies: dependencies:
- condition: postgresql.enabled - condition: postgresql.enabled

View File

@ -1,6 +1,6 @@
# vikunja # vikunja
![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24.0](https://img.shields.io/badge/AppVersion-0.24.0-informational?style=flat-square) ![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24.3](https://img.shields.io/badge/AppVersion-0.24.3-informational?style=flat-square)
The to-do app to organize your life The to-do app to organize your life
@ -42,7 +42,17 @@ The to-do app to organize your life
| config.jwt.existingSecret | string | `""` | | | config.jwt.existingSecret | string | `""` | |
| config.jwt.secretKeys.jwtSecretKey | string | `"jwt-secret"` | | | config.jwt.secretKeys.jwtSecretKey | string | `"jwt-secret"` | |
| config.linkSharing | bool | `true` | | | config.linkSharing | bool | `true` | |
| config.log.http | string | `"off"` | |
| config.log.level | string | `"ERROR"` | | | config.log.level | string | `"ERROR"` | |
| config.mailer.authtype | string | `"plain"` | |
| config.mailer.enabled | bool | `false` | |
| config.mailer.existingSecret | string | `""` | |
| config.mailer.force_ssl | bool | `false` | |
| config.mailer.host | string | `""` | |
| config.mailer.password | string | `""` | |
| config.mailer.port | int | `25` | |
| config.mailer.secretKeys.passwordSecretKey | string | `"password"` | |
| config.mailer.username | string | `""` | |
| config.publicUrl | string | `"https://tasks.local"` | | | config.publicUrl | string | `"https://tasks.local"` | |
| config.registration | bool | `true` | | | config.registration | bool | `true` | |
| config.taskAttachments | bool | `true` | | | config.taskAttachments | bool | `true` | |

View File

@ -58,6 +58,8 @@ spec:
env: env:
- name: VIKUNJA_LOG_LEVEL - name: VIKUNJA_LOG_LEVEL
value: {{ .Values.config.log.level }} value: {{ .Values.config.log.level }}
- name: VIKUNJA_LOG_HTTP
value: {{ .Values.config.log.http | quote }}
{{- if .Values.config.cache.enabled }} {{- if .Values.config.cache.enabled }}
- name: VIKUNJA_CACHE_ENABLED - name: VIKUNJA_CACHE_ENABLED
value: {{ .Values.config.cache.enabled | quote }} value: {{ .Values.config.cache.enabled | quote }}
@ -89,6 +91,31 @@ spec:
value: {{ .Values.config.db.user }} value: {{ .Values.config.db.user }}
- name: VIKUNJA_SERVICE_PUBLICURL - name: VIKUNJA_SERVICE_PUBLICURL
value: {{ .Values.config.publicUrl }} value: {{ .Values.config.publicUrl }}
{{- if .Values.config.mailer.enabled }}
- name: VIKUNJA_MAILER_ENABLED
value: {{ .Values.config.mailer.enabled | quote }}
- name: VIKUNJA_MAILER_HOST
value: {{ .Values.config.mailer.host }}
- name: VIKUNJA_MAILER_PORT
value: {{ .Values.config.mailer.port | quote }}
- name: VIKUNJA_MAILER_AUTHTYPE
value: {{ .Values.config.mailer.authtype }}
- name: VIKUNJA_MAILER_PASSWORD
{{- if .Values.config.mailer.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.config.mailer.existingSecret }}
key: {{ .Values.config.mailer.secretKeys.passwordSecretKey }}
{{- else }}
value: {{ .Values.config.mailer.password }}
{{- end }}
- name: VIKUNJA_MAILER_USERNAME
value: {{ .Values.config.mailer.username }}
- name: VIKUNJA_MAILER_FROMEMAIL
value: {{ .Values.config.mailer.fromemail }}
- name: VIKUNJA_MAILER_FORCESSL
value: {{ .Values.config.mailer.force_ssl | quote }}
{{- end }}
{{- if not (empty .Values.extraEnv) }} {{- if not (empty .Values.extraEnv) }}
{{- toYaml .Values.extraEnv | nindent 12 }} {{- toYaml .Values.extraEnv | nindent 12 }}
{{- end }} {{- end }}

View File

@ -97,10 +97,23 @@ postgresql:
config: config:
log: log:
level: ERROR level: ERROR
http: "off"
jwt: jwt:
existingSecret: "" existingSecret: ""
secretKeys: secretKeys:
jwtSecretKey: jwt-secret jwtSecretKey: jwt-secret
mailer:
enabled: false
host: ""
port: 25
authtype: "plain"
password: ""
username: ""
force_ssl: false
existingSecret: ""
secretKeys:
passwordSecretKey: password
cache: cache:
enabled: false enabled: false
type: redis type: redis