Move .well-known to files, and add /.well-known/matrix/support
This commit is contained in:
14
Caddyfile
14
Caddyfile
@ -24,20 +24,14 @@
|
||||
|
||||
(matrix-well-known) {
|
||||
handle_path /.well-known/matrix/* {
|
||||
header Access-Control-Allow-Origin "*"
|
||||
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"
|
||||
|
||||
|
||||
rewrite * {path}.json
|
||||
body `{"m.homeserver": {"base_url": "https://matrix.boba.best"}}`
|
||||
close
|
||||
}
|
||||
respond /.well-known/matrix/server 200 {
|
||||
body `{"m.server": "matrix.boba.best:443"}`
|
||||
close
|
||||
}
|
||||
}
|
||||
root * /etc/caddy/matrix_well_known
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
import conf.d/*
|
||||
|
Reference in New Issue
Block a user