feat(gotosocial): allow generic configuration

This commit is contained in:
chris 2022-11-05 14:22:58 +01:00
parent 9881b58b71
commit 8a3c5832eb
Signed by: chris
GPG key ID: 75EFC7666CF51AD6
3 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
namespace: socaas
data:
{{- toYaml .Values.gtsConfig | nindent 2 }}

View file

@ -29,6 +29,9 @@ spec:
value: /gotosocial/storage/sqlite.db
- name: GTS_DB_TYPE
value: sqlite
envFrom:
- configMapRef:
name: {{ .Release.Name }}-config
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
name: init-{{ .Release.Name }}-gts
volumeMounts:
@ -59,6 +62,9 @@ spec:
value: "25"
- name: GTS_TRUSTED_PROXIES
value: 0.0.0.0/0
envFrom:
- configMapRef:
name: {{ .Release.Name }}-config
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
name: {{ .Release.Name }}-gts
volumeMounts:

View file

@ -23,3 +23,9 @@ gtsHost: ""
gtsAdminAccountName: ""
gtsAdminAccountMail: ""
gtsAdminAccountPass: ""
gtsConfig: {}
# further config, see https://docs.gotosocial.org/en/latest/configuration/
# ex.:
# GTS_MEDIA_IMAGE_MAX_SIZE: 2097152
# GTS_LOG_LEVEL: debug