Revert "Remove matrix well-known from matrix.boba.best"
This reverts commit ce88e1779d
.
Maybe it's better to have it on both domains, just in case.
This commit is contained in:
parent
ce88e1779d
commit
50b3ca2839
18
Caddyfile
18
Caddyfile
@ -23,4 +23,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(matrix-well-known) {
|
||||||
|
handle /.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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
import conf.d/*
|
import conf.d/*
|
||||||
|
@ -4,21 +4,7 @@ www.boba.best {
|
|||||||
redir https://boba.best{uri}
|
redir https://boba.best{uri}
|
||||||
}
|
}
|
||||||
boba.best {
|
boba.best {
|
||||||
handle /.well-known/matrix/* {
|
import matrix-well-known
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
header Access-Control-Allow-Origin *
|
header Access-Control-Allow-Origin *
|
||||||
root * /var/www/boba.best/public
|
root * /var/www/boba.best/public
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
matrix.boba.best {
|
matrix.boba.best {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
|
import matrix-well-known
|
||||||
|
|
||||||
|
|
||||||
redir /admin /admin/
|
redir /admin /admin/
|
||||||
handle_path /admin/* {
|
handle_path /admin/* {
|
||||||
|
Loading…
Reference in New Issue
Block a user