feat: delegation

This commit is contained in:
ange 2024-05-01 14:34:00 +02:00
parent cdeb8a8409
commit f03984f9d0
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 13 additions and 10 deletions

View File

@ -90,3 +90,5 @@ password_config:
enabled: true
encryption_enabled_by_default_for_room_type: "all"
serve_server_wellknown: true

View File

@ -15,8 +15,15 @@ spec:
- host: gmoker.com
http:
paths:
- path: /.well-known/matrix/
pathType: Prefix
- path: /.well-known/matrix/server
pathType: Exact
backend:
service:
name: app
port:
name: http
- path: /.well-known/matrix/client
pathType: Exact
backend:
service:
name: delegation
@ -45,13 +52,7 @@ data:
default.conf: |
server {
listen 80;
location / {
return 200;
}
location /.well-known/matrix/server {
default_type application/json;
return 200 '{"m.server": "$BASE_URL:443"}';
}
location /.well-known/matrix/client {
default_type application/json;
return 200 '{"m.homeserver": { "base_url": "https://$BASE_URL" }}';
@ -82,7 +83,7 @@ spec:
containerPort: 80
volumeMounts:
- name: delegation
mountPath: /etc/nginx/conf.d
mountPath: /etc/nginx/conf.d/
readOnly: true
volumes:
- name: delegation