summary refs log tree commit diff
path: root/develop/print.html
diff options
context:
space:
mode:
authorsquahtx <squahtx@users.noreply.github.com>2022-04-25 12:18:52 +0000
committersquahtx <squahtx@users.noreply.github.com>2022-04-25 12:18:52 +0000
commit315cd8cd7e1f26afbb2e190ede8c7009ebac1433 (patch)
treec20900efaeff10e2f71604383b256e9871e9355f /develop/print.html
parentdeploy: a36a38b1ca987c39eb70d9bf5ea4bd6999876a78 (diff)
downloadsynapse-315cd8cd7e1f26afbb2e190ede8c7009ebac1433.tar.xz
deploy: d9b71410c28320f67e4816257e56ac44492ffa28
Diffstat (limited to 'develop/print.html')
-rw-r--r--develop/print.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/develop/print.html b/develop/print.html
index fd10f203cc..9f2e000285 100644
--- a/develop/print.html
+++ b/develop/print.html
@@ -1007,6 +1007,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 &quot;*&quot;
+  http-after-response set-header Access-Control-Allow-Methods &quot;GET, POST, PUT, DELETE, OPTIONS&quot;
+  http-after-response set-header Access-Control-Allow-Headers &quot;Origin, X-Requested-With, Content-Type, Accept, Authorization&quot;
+  http-request return status 200 content-type application/json string '{&quot;m.homeserver&quot;:{&quot;base_url&quot;:&quot;https://matrix.example.com&quot;},&quot;m.identity_server&quot;:{&quot;base_url&quot;:&quot;https://identity.example.com&quot;}}'
+
+backend matrix-well-known-server
+  http-after-response set-header Access-Control-Allow-Origin &quot;*&quot;
+  http-after-response set-header Access-Control-Allow-Methods &quot;GET, POST, PUT, DELETE, OPTIONS&quot;
+  http-after-response set-header Access-Control-Allow-Headers &quot;Origin, X-Requested-With, Content-Type, Accept, Authorization&quot;
+  http-request return status 200 content-type application/json string '{&quot;m.server&quot;:&quot;matrix.example.com:443&quot;}'
+</code></pre>
 <h3 id="relayd"><a class="header" href="#relayd">Relayd</a></h3>
 <pre><code>table &lt;webserver&gt;    { 127.0.0.1 }
 table &lt;matrixserver&gt; { 127.0.0.1 }