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
|
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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue