File matrix-synapse.apache of Package matrix-synapse
# You will also want to set bind_addresses: ['127.0.0.1']
# and x_forwarded: true for port 8008 in homeserver.yaml
# to ensure that client IP addresses are recorded correctly.
#
# Having done so, you can then use https://matrix.example.com
# (instead of https://matrix.example.com:8448)
# as the Custom server when Connecting to Synapse from a client.
# SSLProxyEngine On
#
# RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
# AllowEncodedSlashes NoDecode
#
# <Location /matrix>
# ForceType application/json
# ProxyPass http://127.0.0.1:8008/_matrix nocanon
# ProxyPassReverse http://127.0.0.1:8008/_matrix
# </Location>
# <Location /synapse/client>
# ForceType application/json
# ProxyPass http://127.0.0.1:8008/_synapse/client nocanon
# ProxyPassReverse http://127.0.0.1:8008/_synapse/client
# </Location>