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 enabled: true
encryption_enabled_by_default_for_room_type: "all" encryption_enabled_by_default_for_room_type: "all"
serve_server_wellknown: true

View File

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