From 67a457b0eed02359cd7faefe9ea185fb249ca235 Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Mon, 20 Nov 2023 10:09:31 +0000 Subject: [PATCH] Add .well-known endpoint for matrix --- apps/base/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/base/__init__.py b/apps/base/__init__.py index 972be4fdc..9cb9dfa3d 100644 --- a/apps/base/__init__.py +++ b/apps/base/__init__.py @@ -196,6 +196,11 @@ def security_txt(): return """Contact: security@emfcamp.org\n""" +@base.route("/.well-known/matrix/server") +def matrix_server(): + return {"m.server": "matrix.emfcamp.org:443"} + + @base.route("/subscribe") def subscribe(): return render_template("subscribe.html")