[scaffold] Add Matrix/Conduit deployment: deploy/matrix/Caddyfile

This commit is contained in:
2026-04-05 06:10:55 +00:00
parent 992d754334
commit 4d7d7be646

30
deploy/matrix/Caddyfile Normal file
View File

@@ -0,0 +1,30 @@
matrix.example.com {
handle /.well-known/matrix/server {
header Content-Type application/json
respond `{"m.server": "matrix.example.com:443"}`
}
handle /.well-known/matrix/client {
header Content-Type application/json
respond `{"m.homeserver": {"base_url": "https://matrix.example.com"}}`
}
handle_path /_matrix/* {
reverse_proxy localhost:6167
}
handle {
reverse_proxy localhost:8080
}
log {
output file /var/log/caddy/matrix.log {
roll_size 10MB
roll_keep 10
}
}
}
matrix-federation.example.com:8448 {
reverse_proxy localhost:6167
}