BBaoVanC
50b3ca2839
This reverts commit ce88e1779d
.
Maybe it's better to have it on both domains, just in case.
45 lines
1.0 KiB
Caddyfile
45 lines
1.0 KiB
Caddyfile
# vim: ft=caddyfile
|
|
{
|
|
grace_period 60s
|
|
import email
|
|
}
|
|
|
|
#{
|
|
# servers :443 {
|
|
# protocol {
|
|
# experimental_http3
|
|
# }
|
|
# }
|
|
#}
|
|
|
|
(basicerrors) {
|
|
handle_errors {
|
|
#respond "{http.error.status_code} {http.error.status_text}"
|
|
|
|
rewrite * /{http.error.status_code}.jpg
|
|
root * /var/www/errors
|
|
file_server
|
|
}
|
|
}
|
|
|
|
(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/*
|