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 6e6f8a36d1
commit 3934da1d21
2 changed files with 4 additions and 0 deletions

View File

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

View File

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