summary refs log tree commit diff
path: root/develop/reverse_proxy.html
diff options
context:
space:
mode:
Diffstat (limited to 'develop/reverse_proxy.html')
-rw-r--r--develop/reverse_proxy.html19
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 &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 }