Open Eternumkr opened 2 months ago
yourserver.tld {
encode gzip
header /.well-known/matrix/* Content-Type application/json
header /.well-known/matrix/* Access-Control-Allow-Origin *
respond /.well-known/matrix/server {"m.server":"yourserver.tld:443"}
respond /.well-known/matrix/client {"m.homeserver":{"base_url":"https://yourserver.tld"},"org.matrix.msc3575.proxy":{"url":"https://yourserver.tld/sliding-sync"}}
reverse_proxy /_matrix/* http://ipOfMatrixServer:8008 {
transport http {
compression on
}
}
handle_path /sliding-sync/* {
reverse_proxy http://ipOfSlidingSyncProxy:8009
}
}
Something like this is working fine in my setup. (ipOfMatrixServer
and ipOfSlidingSyncProxy
are the same in my case)
Please add instruction/ short guide for setting up with Caddy.
Thank you.