Move .well-known to files, and add /.well-known/matrix/support
This commit is contained in:
parent
50b3ca2839
commit
8e024579e9
14
Caddyfile
14
Caddyfile
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
5
matrix_well_known/client.json
Normal file
5
matrix_well_known/client.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"m.homeserver": {
|
||||
"base_url": "https://matrix.boba.best"
|
||||
}
|
||||
}
|
3
matrix_well_known/server.json
Normal file
3
matrix_well_known/server.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"m.server": "matrix.boba.best:443"
|
||||
}
|
14
matrix_well_known/support.json
Normal file
14
matrix_well_known/support.json
Normal 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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user