2020-12-03 14:52:00 +01:00
|
|
|
# Depending on which port is used for federation (.well-known/matrix/server or SRV record),
|
|
|
|
# ensure there's a binding for that port in the configuration. Replace "FEDPORT" with port
|
|
|
|
# number, (e.g. "8448"), and "IPV4" with your server's ipv4 address (separate binding for
|
|
|
|
# each ip address, e.g. if you use both ipv4 and ipv6 addresses).
|
|
|
|
|
|
|
|
Binding {
|
|
|
|
Port = FEDPORT
|
|
|
|
Interface = IPV4
|
|
|
|
TLScertFile = /path/to/fullchainandprivkey.pem
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-10-28 17:37:56 +01:00
|
|
|
VirtualHost {
|
|
|
|
...
|
|
|
|
# route requests to:
|
|
|
|
# /_matrix/client/.*/sync
|
|
|
|
# /_matrix/client/.*/user/{userId}/filter
|
|
|
|
# /_matrix/client/.*/user/{userId}/filter/{filterID}
|
|
|
|
# /_matrix/client/.*/keys/changes
|
|
|
|
# /_matrix/client/.*/rooms/{roomId}/messages
|
2022-10-10 12:19:16 +02:00
|
|
|
# /_matrix/client/.*/rooms/{roomId}/context/{eventID}
|
|
|
|
# /_matrix/client/.*/rooms/{roomId}/event/{eventID}
|
2022-10-13 15:50:52 +02:00
|
|
|
# /_matrix/client/.*/rooms/{roomId}/relations/{eventID}
|
|
|
|
# /_matrix/client/.*/rooms/{roomId}/relations/{eventID}/{relType}
|
|
|
|
# /_matrix/client/.*/rooms/{roomId}/relations/{eventID}/{relType}/{eventType}
|
2022-10-25 12:39:10 +02:00
|
|
|
# /_matrix/client/.*/rooms/{roomId}/members
|
|
|
|
# /_matrix/client/.*/rooms/{roomId}/joined_members
|
2020-10-28 17:37:56 +01:00
|
|
|
# to sync_api
|
2022-10-25 12:39:10 +02:00
|
|
|
ReverseProxy = /_matrix/client/.*?/(sync|user/.*?/filter/?.*|keys/changes|rooms/.*?/(messages|.*?_?members|context/.*?|relations/.*?|event/.*?))$ http://localhost:8073 600
|
2020-12-03 14:52:00 +01:00
|
|
|
ReverseProxy = /_matrix/client http://localhost:8071 600
|
|
|
|
ReverseProxy = /_matrix/federation http://localhost:8072 600
|
|
|
|
ReverseProxy = /_matrix/key http://localhost:8072 600
|
|
|
|
ReverseProxy = /_matrix/media http://localhost:8074 600
|
2020-10-28 17:37:56 +01:00
|
|
|
...
|
|
|
|
}
|