Improve Caddyfile example

This commit is contained in:
Matthew Holt 2022-07-19 16:20:46 -06:00
parent 6a5655cb12
commit ebf43a3aa6
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -43,11 +43,12 @@ example.com {
header /.well-known/matrix/* Content-Type application/json
header /.well-known/matrix/* Access-Control-Allow-Origin *
respond /.well-known/matrix/server `{"m.homeserver": {"base_url": "https://matrix.example.com"}}`
respond /.well-known/matrix/client `{"m.server": {"base_url": "matrix.example.com:443"}}`
respond /.well-known/matrix/client `{"m.server": "matrix.example.com:443"}`
}
# The actual domain name whereby your Matrix server is accessed.
matrix.example.com {
# Set localhost:8008 to the address of your Dendrite server, if different
reverse_proxy /_matrix/* localhost:8008
reverse_proxy /_matrix/* localhost:8008 # matrix endpoints
reverse_proxy /_dendrite/* localhost:8008 # admin endpoints
}