1
0
Fork 0

k/website: add matrix wellknown

This commit is contained in:
Ryan Heywood 2023-07-26 10:09:31 -05:00
parent 276bfdcd7a
commit c6c722a6c1
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
5 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{
"m.homeserver": {
"base_url": "https://distrust.ems.host"
},
"m.identity_server": {
"base_url": "https://vector.im"
}
}

View File

@ -0,0 +1,3 @@
{
"m.server": "distrust.ems.host:443"
}

View File

@ -19,6 +19,13 @@ spec:
name: wellknown-openpgp
port:
number: 80
- path: /.well-known/matrix
pathType: Prefix
backend:
service:
name: wellknown-matrix
port:
number: 80
- path: /
pathType: Prefix
backend:

View File

@ -10,3 +10,7 @@ configMapGenerator:
- name: openpgp-keys
files:
- keys/88823A75ECAA786B0FF38B148E401478A3FBEF72.asc
- name: wellknown-matrix
files:
- files/matrix/client
- files/matrix/server

View File

@ -42,6 +42,50 @@ spec:
configMap:
name: openpgp-keys
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wellknown-matrix
spec:
replicas: 2
selector:
matchLabels:
app: wellknown-matrix
template:
metadata:
labels:
app: wellknown-matrix
spec:
initContainers:
- name: copy-files
image: nginx
command: ["sh"]
args:
- -c
- |-
mkdir -p /output/.well-known/matrix
cp /input/client /output/.well-known/matrix
cp /input/server /output/.well-known/matrix
volumeMounts:
- name: data
mountPath: /output
- name: wellknown
mountPath: /input
containers:
- name: wellknown-openpgp
image: nginx
ports:
- containerPort: 80
volumeMounts:
- name: data
mountPath: /usr/share/nginx/html
volumes:
- name: data
emptyDir: {}
- name: wellknown
configMap:
name: wellknown-matrix
---
apiVersion: v1
kind: Service
metadata:
@ -53,3 +97,15 @@ spec:
targetPort: 80
selector:
app: wellknown-openpgp
---
apiVersion: v1
kind: Service
metadata:
name: wellknown-matrix
spec:
ports:
- name: http
port: 80
targetPort: 80
selector:
app: wellknown-matrix