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 2019-08-21 15:17:33 +00:00 committed by Sunil Mohan Adapa
parent 49088ef578
commit 4b8b2e171c
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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>