From f07e5294fc4a9b94bfcb531ea81d0931792f0820 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Thu, 12 Jan 2023 22:10:09 +0100 Subject: [PATCH] matrix homeserver discovery --- netlify.toml | 8 ++++++++ static/.well-known/matrix/client | 1 + static/.well-known/matrix/server | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 static/.well-known/matrix/client create mode 100644 static/.well-known/matrix/server diff --git a/netlify.toml b/netlify.toml index e403b7c..d5fe005 100644 --- a/netlify.toml +++ b/netlify.toml @@ -15,3 +15,11 @@ command = "./hugo --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL" [context.deploy-preview.environment] HUGO_ENABLEGITINFO = "true" + +# Matrix homeserver discovery +[[headers]] + for = "/.well-known/*" + + [headers.values] + Content-Type = "application/json" + Access-Control-Allow-Origin = "*" diff --git a/static/.well-known/matrix/client b/static/.well-known/matrix/client new file mode 100644 index 0000000..98a6688 --- /dev/null +++ b/static/.well-known/matrix/client @@ -0,0 +1 @@ +{"m.homeserver": {"base_url": "https://matrix.itix.fr:443"}} diff --git a/static/.well-known/matrix/server b/static/.well-known/matrix/server new file mode 100644 index 0000000..4d9a1c9 --- /dev/null +++ b/static/.well-known/matrix/server @@ -0,0 +1,3 @@ +{ + "m.server": "matrix.itix.fr:443" +}