From 8dc8edc4afa3bc157103c9d278dadf329efe4107 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 13 Oct 2022 22:18:30 +0100 Subject: [PATCH] apps/ninja: configure mails and db pvc --- .../apps/ninja/invoiceninja-mariadb-pvc.yaml | 15 +++++++++ .../ninja/invoiceninja-values-configmap.yaml | 32 ++++++++++--------- 2 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 basic/apps/ninja/invoiceninja-mariadb-pvc.yaml diff --git a/basic/apps/ninja/invoiceninja-mariadb-pvc.yaml b/basic/apps/ninja/invoiceninja-mariadb-pvc.yaml new file mode 100644 index 0000000..f14dcb0 --- /dev/null +++ b/basic/apps/ninja/invoiceninja-mariadb-pvc.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: invoiceninja-mariadb + namespace: stackspout + labels: + stackspin.net/backupSet: "invoiceninja" +spec: + accessModes: + - ReadWriteOnce + volumeMode: Filesystem + resources: + requests: + storage: 2Gi + storageClassName: local-path diff --git a/basic/apps/ninja/invoiceninja-values-configmap.yaml b/basic/apps/ninja/invoiceninja-values-configmap.yaml index 1310e77..e56653d 100644 --- a/basic/apps/ninja/invoiceninja-values-configmap.yaml +++ b/basic/apps/ninja/invoiceninja-values-configmap.yaml @@ -14,27 +14,29 @@ data: persistence: public: existingClaim: invoiceninja-data - debug: true - userEmail: "${admin_email}" - userPassword: "${password}" mariadb: # https://github.com/bitnami/charts/blob/master/bitnami/mariadb/values.yaml auth: password: "${mariadb_password}" rootPassword: "${mariadb_root_password}" - redis: - auth: - password: "${redis_password}" + persistence: + existingClaim: invoiceninja-mariadb + # Redis is only cache, so no pvc needed: https://invoiceninja.github.io/docs/env-variables/ - # TODO Adjust invoiceninja Mailing config - # mailer: - # enabled: "${outgoing_mail_enabled}" - # host: "${outgoing_mail_smtp_host}" - # port: "${outgoing_mail_smtp_port}" - # username: "${outgoing_mail_smtp_user}" - # password: "${outgoing_mail_smtp_password}" - # fromemail: "${outgoing_mail_from_address}" - # TODO Adjust invoiceninja OpenID Connect Single Sign-On Configuration + userEmail: "${admin_email}" + userPassword: "${password}" + mailer: "smtp" # FIXME use "${outgoing_mail_enabled}" + # https://github.com/invoiceninja/invoiceninja/blob/v5-stable/config/mail.php#L36 + extraEnvVars: + - MAIL_HOST: "${outgoing_mail_smtp_host}" + - MAIL_PORT: "${outgoing_mail_smtp_port}" + - MAIL_USERNAME: "${outgoing_mail_smtp_user}" + - MAIL_PASSWORD: "${outgoing_mail_smtp_password}" + - MAIL_EHLO_DOMAIN: "${outgoing_mail_domain}" + - MAIL_FROM_ADDRESS: "${outgoing_mail_from_address}" + - MAIL_FROM_NAME: "FTT Forensic Discovery GmbH" + + # Missing: invoiceninja OpenID Connect Single Sign-On Configuration # - name: Stackspin # key: "${client_id}" # secret: "${client_secret}"