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

View file

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