Browse Source

matrix homeserver discovery

pull/10/head
Nicolas Massé 3 years ago
parent
commit
f07e5294fc
  1. 8
      netlify.toml
  2. 1
      static/.well-known/matrix/client
  3. 3
      static/.well-known/matrix/server

8
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 = "*"

1
static/.well-known/matrix/client

@ -0,0 +1 @@
{"m.homeserver": {"base_url": "https://matrix.itix.fr:443"}}

3
static/.well-known/matrix/server

@ -0,0 +1,3 @@
{
"m.server": "matrix.itix.fr:443"
}
Loading…
Cancel
Save