This commit is contained in:
ange 2024-05-01 16:56:58 +02:00
parent 8fe999c3bb
commit 5717e1bd2f
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
6 changed files with 15 additions and 14 deletions

View file

@ -51,6 +51,7 @@ kcreatecm synapse-config \
--from-file=homeserver.yaml=<(envsubst "$(env | xargs printf '$%s ')" < homeserver.yaml) \
--from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < log.config)
kapply common/keys.yaml common/app.yaml
kapply common/keys.yaml common/app.yaml common/delegation.yaml
kubectl rollout restart deployment delegation
kubectl rollout restart statefulset app

View file

@ -4,7 +4,3 @@
export NB_REPLICAS=1
. ./manifests/bin/deploy.sh
kapply prod/delegation.yaml
kubectl rollout restart deployment delegation

View file

@ -10,9 +10,9 @@ spec:
tls:
- secretName: tls-delegation
hosts:
- "$PUBLIC_URL"
- "$SERVER_NAME"
rules:
- host: "$PUBLIC_URL"
- host: "$SERVER_NAME"
http:
paths:
- path: /.well-known/matrix/server
@ -53,11 +53,17 @@ data:
server {
listen 80;
location /.well-known/matrix/server {
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"m.server": "$BASE_URL:443"}'
}
location /.well-known/matrix/client {
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"m.homeserver": { "base_url": "https://$BASE_URL" }}';
return 200 '{"m.homeserver": {"base_url": "https://$BASE_URL"}}';
}
}
---