[matrix] update element-web config

This commit is contained in:
Nico Schottelius 2021-12-25 16:04:59 +01:00
parent 91f21e560e
commit d83fdc0448
4 changed files with 28 additions and 4 deletions

View file

@ -147,3 +147,11 @@ docker exec -it synapse register_new_matrix_user http://localhost:8008 -c /data/
* Another FQDN
* If set, another nginx instance
## Usage
### Element-Web
* Includes config.json that is being populated by values.yaml
* Includes nginx on port localhost:8080 (http)
* Includes nginx proxy on port 80+443 (http redirect, https)

View file

@ -1,8 +1,8 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://{{ .Values.synapseFQDN }}",
"server_name": "{{ .Values.homeServerFQDN }}"
"base_url": "https://{{ tpl .Values.synapseFQDN . }}",
"server_name": "{{ tpl .Values.homeServerFQDN . }}"
},
"m.identity_server": {
"base_url": "https://vector.im"
@ -30,7 +30,7 @@
"default_theme": "light",
"roomDirectory": {
"servers": [
"matrix.org"
"{{ tpl .Values.homeServerFQDN . }}"
]
},
"piwik": {

View file

@ -0,0 +1,10 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-element-web
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: matrix-element-web
data:
{{ tpl (.Files.Glob "element-web/*").AsConfig . | indent 2 }}

View file

@ -43,13 +43,16 @@ spec:
- name: etcletsencrypt
mountPath: "/etc/letsencrypt"
- name: element-web
command: ["nginx", "-g", "daemon off;" ]
image: vectorim/element-web:{{ .Values.elementWebVersion }}
ports:
- containerPort: 8080
volumeMounts:
- name: nginx-config
mountPath: "/etc/nginx/conf.d/"
command: ["nginx", "-g", "daemon off;" ]
- name: elementwebconfig
mountPath: "/usr/share/nginx/html/config.json"
subPath: config.json
volumes:
- name: nginx-config
configMap:
@ -57,6 +60,9 @@ spec:
- name: nginx-config-proxy
configMap:
name: {{ .Release.Name }}-element-web-nginx-proxy
- name: elementwebconfig
configMap:
name: {{ .Release.Name }}-element-web
- name: etcletsencrypt
persistentVolumeClaim:
claimName: {{ .Release.Name }}-element-web-letsencrypt-certs