[matrix] update element-web config
This commit is contained in:
parent
91f21e560e
commit
d83fdc0448
4 changed files with 28 additions and 4 deletions
|
@ -147,3 +147,11 @@ docker exec -it synapse register_new_matrix_user http://localhost:8008 -c /data/
|
||||||
|
|
||||||
* Another FQDN
|
* Another FQDN
|
||||||
* If set, another nginx instance
|
* 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)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"default_server_config": {
|
"default_server_config": {
|
||||||
"m.homeserver": {
|
"m.homeserver": {
|
||||||
"base_url": "https://{{ .Values.synapseFQDN }}",
|
"base_url": "https://{{ tpl .Values.synapseFQDN . }}",
|
||||||
"server_name": "{{ .Values.homeServerFQDN }}"
|
"server_name": "{{ tpl .Values.homeServerFQDN . }}"
|
||||||
},
|
},
|
||||||
"m.identity_server": {
|
"m.identity_server": {
|
||||||
"base_url": "https://vector.im"
|
"base_url": "https://vector.im"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
"default_theme": "light",
|
"default_theme": "light",
|
||||||
"roomDirectory": {
|
"roomDirectory": {
|
||||||
"servers": [
|
"servers": [
|
||||||
"matrix.org"
|
"{{ tpl .Values.homeServerFQDN . }}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"piwik": {
|
"piwik": {
|
||||||
|
|
10
apps/matrix/templates/element-web-conf.yaml
Normal file
10
apps/matrix/templates/element-web-conf.yaml
Normal 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 }}
|
|
@ -43,13 +43,16 @@ spec:
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
mountPath: "/etc/letsencrypt"
|
mountPath: "/etc/letsencrypt"
|
||||||
- name: element-web
|
- name: element-web
|
||||||
|
command: ["nginx", "-g", "daemon off;" ]
|
||||||
image: vectorim/element-web:{{ .Values.elementWebVersion }}
|
image: vectorim/element-web:{{ .Values.elementWebVersion }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
mountPath: "/etc/nginx/conf.d/"
|
mountPath: "/etc/nginx/conf.d/"
|
||||||
command: ["nginx", "-g", "daemon off;" ]
|
- name: elementwebconfig
|
||||||
|
mountPath: "/usr/share/nginx/html/config.json"
|
||||||
|
subPath: config.json
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
configMap:
|
configMap:
|
||||||
|
@ -57,6 +60,9 @@ spec:
|
||||||
- name: nginx-config-proxy
|
- name: nginx-config-proxy
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ .Release.Name }}-element-web-nginx-proxy
|
name: {{ .Release.Name }}-element-web-nginx-proxy
|
||||||
|
- name: elementwebconfig
|
||||||
|
configMap:
|
||||||
|
name: {{ .Release.Name }}-element-web
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Release.Name }}-element-web-letsencrypt-certs
|
claimName: {{ .Release.Name }}-element-web-letsencrypt-certs
|
||||||
|
|
Loading…
Reference in a new issue