matrix-synapse: Use recommended reverse proxy configuration

matrix-synapse reverse proxy configuration for Apache according to:
https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.rst

Fixes #1533.

[sunil@medhas.org Fix closing location directive]
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
bn4t authored and Sunil Mohan Adapa committed 2019-08-23 11:10:33 -07:00
1 parent 49088ef578
commit 4b8b2e171c
1 file changed
+5 -1
@@ -5,4 +5,8 @@
## 8448. Further, federation requires same TLS public key to be provided to
## Apache and Matrix Synapse server.
##
ProxyPass /_matrix http://localhost:8008/_matrix
<Location "/_matrix">
AllowEncodedSlashes NoDecode
ProxyPass /_matrix http://localhost:8008/_matrix nocanon
ProxyPassReverse /_matrix http://localhost:8008/_matrix
</Location>