communication: fix Matrix well-known auth JSON

This commit is contained in:
Brad Stein 2025-12-31 16:18:24 -03:00
parent 385df610be
commit 01dcb76966

View File

@ -26,6 +26,30 @@ data:
"m.server": "live.bstein.dev:443" "m.server": "live.bstein.dev:443"
} }
--- ---
apiVersion: v1
kind: ConfigMap
metadata:
name: matrix-wellknown-nginx
namespace: communication
data:
default.conf: |
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
location = /.well-known/matrix/client {
default_type application/json;
try_files $uri =404;
}
location = /.well-known/matrix/server {
default_type application/json;
try_files $uri =404;
}
}
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -50,20 +74,26 @@ spec:
- containerPort: 80 - containerPort: 80
volumeMounts: volumeMounts:
- name: wellknown - name: wellknown
mountPath: /usr/share/nginx/html/.well-known/matrix/client mountPath: /usr/share/nginx/html/.well-known/matrix
subPath: client.json readOnly: true
- name: wellknown - name: nginx-config
mountPath: /usr/share/nginx/html/.well-known/matrix/server mountPath: /etc/nginx/conf.d/default.conf
subPath: server.json subPath: default.conf
volumes: volumes:
- name: wellknown - name: wellknown
configMap: configMap:
name: matrix-wellknown name: matrix-wellknown
items: items:
- key: client.json - key: client.json
path: client.json path: client
- key: server.json - key: server.json
path: server.json path: server
- name: nginx-config
configMap:
name: matrix-wellknown-nginx
items:
- key: default.conf
path: default.conf
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service