mirror of
https://github.com/element-hq/synapse
synced 2024-10-11 04:13:33 +00:00
deploy: 935e73efed
This commit is contained in:
parent
b02c7618a2
commit
1dd16e9b08
4 changed files with 22 additions and 82 deletions
|
@ -909,57 +909,27 @@ to proxied traffic.)</p>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h3 id="caddy-v1"><a class="header" href="#caddy-v1">Caddy v1</a></h3>
|
|
||||||
<pre><code>matrix.example.com {
|
|
||||||
proxy /_matrix http://localhost:8008 {
|
|
||||||
transparent
|
|
||||||
}
|
|
||||||
|
|
||||||
proxy /_synapse/client http://localhost:8008 {
|
|
||||||
transparent
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
example.com:8448 {
|
|
||||||
proxy / http://localhost:8008 {
|
|
||||||
transparent
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
<h3 id="caddy-v2"><a class="header" href="#caddy-v2">Caddy v2</a></h3>
|
<h3 id="caddy-v2"><a class="header" href="#caddy-v2">Caddy v2</a></h3>
|
||||||
<pre><code>matrix.example.com {
|
<pre><code>matrix.example.com {
|
||||||
reverse_proxy /_matrix/* http://localhost:8008
|
reverse_proxy /_matrix/* localhost:8008
|
||||||
reverse_proxy /_synapse/client/* http://localhost:8008
|
reverse_proxy /_synapse/client/* localhost:8008
|
||||||
}
|
}
|
||||||
|
|
||||||
example.com:8448 {
|
example.com:8448 {
|
||||||
reverse_proxy http://localhost:8008
|
reverse_proxy localhost:8008
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p><a href="delegate.html">Delegation</a> example:</p>
|
<p><a href="delegate.html">Delegation</a> example:</p>
|
||||||
<pre><code>(matrix-well-known-header) {
|
<pre><code>example.com {
|
||||||
# Headers
|
header /.well-known/matrix/* Content-Type application/json
|
||||||
header Access-Control-Allow-Origin "*"
|
header /.well-known/matrix/* Access-Control-Allow-Origin *
|
||||||
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
respond /.well-known/matrix/server `{"m.server": "matrix.example.com:443"}`
|
||||||
header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
respond /.well-known/matrix/client `{"m.homeserver":{"base_url":"https://matrix.example.com"},"m.identity_server":{"base_url":"https://identity.example.com"}}`
|
||||||
header Content-Type "application/json"
|
|
||||||
}
|
|
||||||
|
|
||||||
example.com {
|
|
||||||
handle /.well-known/matrix/server {
|
|
||||||
import matrix-well-known-header
|
|
||||||
respond `{"m.server":"matrix.example.com:443"}`
|
|
||||||
}
|
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
|
||||||
import matrix-well-known-header
|
|
||||||
respond `{"m.homeserver":{"base_url":"https://matrix.example.com"},"m.identity_server":{"base_url":"https://identity.example.com"}}`
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix.example.com {
|
matrix.example.com {
|
||||||
reverse_proxy /_matrix/* http://localhost:8008
|
reverse_proxy /_matrix/* localhost:8008
|
||||||
reverse_proxy /_synapse/client/* http://localhost:8008
|
reverse_proxy /_synapse/client/* localhost:8008
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h3 id="apache"><a class="header" href="#apache">Apache</a></h3>
|
<h3 id="apache"><a class="header" href="#apache">Apache</a></h3>
|
||||||
|
|
|
@ -211,57 +211,27 @@ to proxied traffic.)</p>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h3 id="caddy-v1"><a class="header" href="#caddy-v1">Caddy v1</a></h3>
|
|
||||||
<pre><code>matrix.example.com {
|
|
||||||
proxy /_matrix http://localhost:8008 {
|
|
||||||
transparent
|
|
||||||
}
|
|
||||||
|
|
||||||
proxy /_synapse/client http://localhost:8008 {
|
|
||||||
transparent
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
example.com:8448 {
|
|
||||||
proxy / http://localhost:8008 {
|
|
||||||
transparent
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
<h3 id="caddy-v2"><a class="header" href="#caddy-v2">Caddy v2</a></h3>
|
<h3 id="caddy-v2"><a class="header" href="#caddy-v2">Caddy v2</a></h3>
|
||||||
<pre><code>matrix.example.com {
|
<pre><code>matrix.example.com {
|
||||||
reverse_proxy /_matrix/* http://localhost:8008
|
reverse_proxy /_matrix/* localhost:8008
|
||||||
reverse_proxy /_synapse/client/* http://localhost:8008
|
reverse_proxy /_synapse/client/* localhost:8008
|
||||||
}
|
}
|
||||||
|
|
||||||
example.com:8448 {
|
example.com:8448 {
|
||||||
reverse_proxy http://localhost:8008
|
reverse_proxy localhost:8008
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p><a href="delegate.html">Delegation</a> example:</p>
|
<p><a href="delegate.html">Delegation</a> example:</p>
|
||||||
<pre><code>(matrix-well-known-header) {
|
<pre><code>example.com {
|
||||||
# Headers
|
header /.well-known/matrix/* Content-Type application/json
|
||||||
header Access-Control-Allow-Origin "*"
|
header /.well-known/matrix/* Access-Control-Allow-Origin *
|
||||||
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
respond /.well-known/matrix/server `{"m.server": "matrix.example.com:443"}`
|
||||||
header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
respond /.well-known/matrix/client `{"m.homeserver":{"base_url":"https://matrix.example.com"},"m.identity_server":{"base_url":"https://identity.example.com"}}`
|
||||||
header Content-Type "application/json"
|
|
||||||
}
|
|
||||||
|
|
||||||
example.com {
|
|
||||||
handle /.well-known/matrix/server {
|
|
||||||
import matrix-well-known-header
|
|
||||||
respond `{"m.server":"matrix.example.com:443"}`
|
|
||||||
}
|
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
|
||||||
import matrix-well-known-header
|
|
||||||
respond `{"m.homeserver":{"base_url":"https://matrix.example.com"},"m.identity_server":{"base_url":"https://identity.example.com"}}`
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix.example.com {
|
matrix.example.com {
|
||||||
reverse_proxy /_matrix/* http://localhost:8008
|
reverse_proxy /_matrix/* localhost:8008
|
||||||
reverse_proxy /_synapse/client/* http://localhost:8008
|
reverse_proxy /_synapse/client/* localhost:8008
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h3 id="apache"><a class="header" href="#apache">Apache</a></h3>
|
<h3 id="apache"><a class="header" href="#apache">Apache</a></h3>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue