From 3468572ee5fa3c8905f92f60adf3c20e6400c26a Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Sat, 15 Apr 2023 22:12:34 +0200 Subject: [PATCH] Matrix: Add Support contact and fix status codes --- coreos-config/roles/compose_project/templates/matrix/Caddyfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreos-config/roles/compose_project/templates/matrix/Caddyfile b/coreos-config/roles/compose_project/templates/matrix/Caddyfile index 60fea5a..54bf9cc 100644 --- a/coreos-config/roles/compose_project/templates/matrix/Caddyfile +++ b/coreos-config/roles/compose_project/templates/matrix/Caddyfile @@ -9,4 +9,7 @@ http://{{ matrix.baseurl }} { } respond /.well-known/matrix/client "{\"m.homeserver\": {\"base_url\": \"https://synapse.{{ matrix.baseurl }}\"} }" 200 respond /.well-known/matrix/server "{\"m.server\": \"synapse.{{ matrix.baseurl }}:443\"}" 200 + respond /.well-known/matrix/support "{\"admins\":[{\"matrix_id\":\"@tobi:{{ matrix.baseurl }}\",\"email_address\":\"matrix@{{ matrix.baseurl }}\",\"role\":\"admin\"}]}" 200 + + respond 404 }