From 2b3d8da0a5b12eb0aee6a811dc945b6937c76931 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Wed, 26 Jul 2023 00:15:02 -0700 Subject: [PATCH] add matrix well-known files --- Makefile | 11 ++++++++++- src/well-known/matrix/client | 8 ++++++++ src/well-known/matrix/server | 3 +++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/well-known/matrix/client create mode 100644 src/well-known/matrix/server diff --git a/Makefile b/Makefile index c95e49b..e1e0b82 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,13 @@ credentials: \ $(KEY_DIR)/%.asc: $(call fetch_pgp_key,$(basename $(notdir $@))) +$(OUT_DIR)/website/.well-known/matrix/server \ +$(OUT_DIR)/website/.well-known/matrix/server: + mkdir -p $(OUT_DIR)/website/.well-known/matrix + cp -R \ + $(SRC_DIR)/well-known/matrix/* \ + $(OUT_DIR)/website/.well-known/matrix/ + $(OUT_DIR)/website/.well-known/openpgpkey: $(call toolchain," \ sq wkd \ @@ -39,7 +46,9 @@ $(OUT_DIR)/website/.well-known/openpgpkey: ") $(OUT_DIR)/website/index.html: \ - $(OUT_DIR)/website/.well-known/openpgpkey + $(OUT_DIR)/website/.well-known/openpgpkey \ + $(OUT_DIR)/website/.well-known/matrix/server \ + $(OUT_DIR)/website/.well-known/matrix/client $(call toolchain," \ cd $(SRC_DIR)/website \ && jekyll build \ diff --git a/src/well-known/matrix/client b/src/well-known/matrix/client new file mode 100644 index 0000000..f2ee293 --- /dev/null +++ b/src/well-known/matrix/client @@ -0,0 +1,8 @@ +{ + "m.homeserver": { + "base_url": "https://distrust.ems.host" + }, + "m.identity_server": { + "base_url": "https://vector.im" + } +} diff --git a/src/well-known/matrix/server b/src/well-known/matrix/server new file mode 100644 index 0000000..f81721e --- /dev/null +++ b/src/well-known/matrix/server @@ -0,0 +1,3 @@ +{ + "m.server": "distrust.ems.host:443" +}