Move .well-known to files, and add /.well-known/matrix/support

This commit is contained in:
BBaoVanC 2021-08-15 14:00:27 -05:00
parent 50b3ca2839
commit 8e024579e9
4 changed files with 26 additions and 10 deletions

View File

@ -24,20 +24,14 @@
}
(matrix-well-known) {
handle /.well-known/matrix/* {
handle_path /.well-known/matrix/* {
header Access-Control-Allow-Origin "*"
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
header Content-Type "application/json"
respond /.well-known/matrix/client 200 {
body `{"m.homeserver": {"base_url": "https://matrix.boba.best"}}`
close
}
respond /.well-known/matrix/server 200 {
body `{"m.server": "matrix.boba.best:443"}`
close
}
rewrite * {path}.json
root * /etc/caddy/matrix_well_known
file_server
}
}

View File

@ -0,0 +1,5 @@
{
"m.homeserver": {
"base_url": "https://matrix.boba.best"
}
}

View File

@ -0,0 +1,3 @@
{
"m.server": "matrix.boba.best:443"
}

View File

@ -0,0 +1,14 @@
{
"admins": [
{
"matrix_id": "@bbaovanc:boba.best",
"email_address": "abuse@boba.best",
"role": "admin"
},
{
"matrix_id": "@bbaovanc:matrix.org",
"role": "backup"
}
],
"support_page": "https://matrix.to/#/#support:boba.best"
}