apps/ninja: configure mails and db pvc

This commit is contained in:
xeruf 2022-10-13 22:18:30 +01:00
parent 2d34b4e14b
commit 8dc8edc4af
2 changed files with 32 additions and 15 deletions

View File

@ -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

View File

@ -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}"