feat(gotosocial): allow generic configuration
This commit is contained in:
parent
9881b58b71
commit
8a3c5832eb
3 changed files with 19 additions and 0 deletions
7
gotosocial/templates/config.yaml
Normal file
7
gotosocial/templates/config.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-config
|
||||
namespace: socaas
|
||||
data:
|
||||
{{- toYaml .Values.gtsConfig | nindent 2 }}
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue