3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 21:13:21 +00:00

Add the PREPARED_STATEMENTS environment variable and set it to its default value

Being able to control it can be useful in situations where prepared statements don't work as expected. Once such case can be pgbouncer as provided by DigitalOcean for connection pooling.
This commit is contained in:
Cees-Jan Kiewiet 2022-11-28 14:52:41 +01:00 committed by Renaud Chaput
parent 8b8b7d0f11
commit 7a643b6eb2
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ data:
DB_NAME: {{ .Values.postgresql.auth.database }} DB_NAME: {{ .Values.postgresql.auth.database }}
DB_POOL: {{ include "mastodon.maxDbPool" . }} DB_POOL: {{ include "mastodon.maxDbPool" . }}
DB_USER: {{ .Values.postgresql.auth.username }} DB_USER: {{ .Values.postgresql.auth.username }}
PREPARED_STATEMENTS: {{ .Values.mastodon.preparedStatements | quote }}
DEFAULT_LOCALE: {{ .Values.mastodon.locale }} DEFAULT_LOCALE: {{ .Values.mastodon.locale }}
{{- if .Values.elasticsearch.enabled }} {{- if .Values.elasticsearch.enabled }}
ES_ENABLED: "true" ES_ENABLED: "true"

View File

@ -202,6 +202,9 @@ mastodon:
# -- Enable statsd publishing via STATSD_ADDR environment variable # -- Enable statsd publishing via STATSD_ADDR environment variable
address: "" address: ""
# Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements
preparedStatements: true
ingress: ingress:
enabled: true enabled: true
annotations: annotations: