summary refs log tree commit diff
path: root/develop/reverse_proxy.html
diff options
context:
space:
mode:
authorrichvdh <richvdh@users.noreply.github.com>2021-08-27 11:54:42 +0000
committerrichvdh <richvdh@users.noreply.github.com>2021-08-27 11:54:42 +0000
commitf7919db5f5a8899862f7bb12c044bd800d01ad2d (patch)
treea8c01b4bd6dc9bb655656729aab9fa179ef1c966 /develop/reverse_proxy.html
parentdeploy: ad17fbd20eb2dd9fb10a3d02ab1b69e9a0d5b50c (diff)
downloadsynapse-f7919db5f5a8899862f7bb12c044bd800d01ad2d.tar.xz
deploy: 051ddac53b733e5768488bac7548a0c31bf68982
Diffstat (limited to 'develop/reverse_proxy.html')
-rw-r--r--develop/reverse_proxy.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/develop/reverse_proxy.html b/develop/reverse_proxy.html

index a9385e9256..8bb18d0b7d 100644 --- a/develop/reverse_proxy.html +++ b/develop/reverse_proxy.html
@@ -233,6 +233,9 @@ to proxied traffic.)</p> server_name matrix.example.com; location ~* ^(\/_matrix|\/_synapse\/client) { + # note: do not add a path (even a single /) after the port in `proxy_pass`, + # otherwise nginx will canonicalise the URI and cause signature verification + # errors. proxy_pass http://localhost:8008; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; @@ -244,9 +247,7 @@ to proxied traffic.)</p> } } </code></pre> -<p><strong>NOTE</strong>: Do not add a path after the port in <code>proxy_pass</code>, otherwise nginx will -canonicalise/normalise the URI.</p> -<h3 id="caddy-1"><a class="header" href="#caddy-1">Caddy 1</a></h3> +<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 @@ -263,7 +264,7 @@ example.com:8448 { } } </code></pre> -<h3 id="caddy-2"><a class="header" href="#caddy-2">Caddy 2</a></h3> +<h3 id="caddy-v2"><a class="header" href="#caddy-v2">Caddy v2</a></h3> <pre><code>matrix.example.com { reverse_proxy /_matrix/* http://localhost:8008 reverse_proxy /_synapse/client/* http://localhost:8008