From e406e462f6e52eca2eb9e61b9adaa514c6a9db6d Mon Sep 17 00:00:00 2001 From: Simon Herman Date: Mon, 10 Feb 2025 15:28:51 +0100 Subject: [PATCH] fix(open-xchange): Parameters to split read and write queries to MariaDB --- helmfile/apps/open-xchange/values-openxchange.yaml.gotmpl | 4 ++++ helmfile/environments/default/database.yaml.gotmpl | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/helmfile/apps/open-xchange/values-openxchange.yaml.gotmpl b/helmfile/apps/open-xchange/values-openxchange.yaml.gotmpl index e8a3c82f..f65fe284 100644 --- a/helmfile/apps/open-xchange/values-openxchange.yaml.gotmpl +++ b/helmfile/apps/open-xchange/values-openxchange.yaml.gotmpl @@ -13,10 +13,14 @@ global: mysql: host: {{ .Values.databases.oxAppSuite.host | quote }} database: {{ .Values.databases.oxAppSuite.name | quote }} + readHost: {{ .Values.databases.oxAppSuite.readHost | quote }} + readDatabase: {{ .Values.databases.oxAppSuite.name | quote }} auth: user: {{ .Values.databases.oxAppSuite.username | quote }} password: {{ .Values.databases.oxAppSuite.password | default .Values.secrets.mariadb.rootPassword | quote }} rootPassword: {{ .Values.databases.oxAppSuite.password | default .Values.secrets.mariadb.rootPassword | quote }} + readUser: {{ .Values.databases.oxAppSuite.readUser | default .Values.databases.oxAppSuite.username | quote }} + readPassword: {{ .Values.databases.oxAppSuite.readPassword | default .Values.databases.oxAppSuite.password | quote}} nextcloud-integration-ui: image: diff --git a/helmfile/environments/default/database.yaml.gotmpl b/helmfile/environments/default/database.yaml.gotmpl index a0127916..3735bc29 100644 --- a/helmfile/environments/default/database.yaml.gotmpl +++ b/helmfile/environments/default/database.yaml.gotmpl @@ -70,6 +70,11 @@ databases: port: 3306 username: "root" password: "" + # Optional settings: Route read queries to a different host. + readHost: ~ + # If provided, uses a different set of credentials for read queries. By default oxAppSuite.username and oxAppsuite.password are used. + readUser: ~ + readPassword: ~ connectionLimit: ~ synapse: type: "postgresql"