diff options
author | squahtx <squahtx@users.noreply.github.com> | 2022-04-25 12:18:52 +0000 |
---|---|---|
committer | squahtx <squahtx@users.noreply.github.com> | 2022-04-25 12:18:52 +0000 |
commit | 315cd8cd7e1f26afbb2e190ede8c7009ebac1433 (patch) | |
tree | c20900efaeff10e2f71604383b256e9871e9355f /develop/reverse_proxy.html | |
parent | deploy: a36a38b1ca987c39eb70d9bf5ea4bd6999876a78 (diff) | |
download | synapse-315cd8cd7e1f26afbb2e190ede8c7009ebac1433.tar.xz |
deploy: d9b71410c28320f67e4816257e56ac44492ffa28
Diffstat (limited to 'develop/reverse_proxy.html')
-rw-r--r-- | develop/reverse_proxy.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/develop/reverse_proxy.html b/develop/reverse_proxy.html index 4f6a0fbaf5..a1bafe9cbf 100644 --- a/develop/reverse_proxy.html +++ b/develop/reverse_proxy.html @@ -320,6 +320,25 @@ frontend matrix-federation backend matrix server matrix 127.0.0.1:8008 </code></pre> +<p><a href="delegate.html">Delegation</a> example:</p> +<pre><code>frontend https + acl matrix-well-known-client-path path /.well-known/matrix/client + acl matrix-well-known-server-path path /.well-known/matrix/server + use_backend matrix-well-known-client if matrix-well-known-client-path + use_backend matrix-well-known-server if matrix-well-known-server-path + +backend matrix-well-known-client + http-after-response set-header Access-Control-Allow-Origin "*" + http-after-response set-header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" + http-after-response set-header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" + http-request return status 200 content-type application/json string '{"m.homeserver":{"base_url":"https://matrix.example.com"},"m.identity_server":{"base_url":"https://identity.example.com"}}' + +backend matrix-well-known-server + http-after-response set-header Access-Control-Allow-Origin "*" + http-after-response set-header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" + http-after-response set-header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" + http-request return status 200 content-type application/json string '{"m.server":"matrix.example.com:443"}' +</code></pre> <h3 id="relayd"><a class="header" href="#relayd">Relayd</a></h3> <pre><code>table <webserver> { 127.0.0.1 } table <matrixserver> { 127.0.0.1 } |