Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/setup/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ server {
}
```

## Synapse MAS endpoint
Include **/_synapse/mas** under the location paths forwarded to Synapse.

```nginx
server {
# ---- SNIP ----
location ~ ^(/_matrix|/_synapse/client|/_synapse/mas) {
# ---- SNIP ----
```

## Preserve the client IP

For rate-limiting and logging purposes, MAS needs to know the client IP address, which can be lost when using a reverse proxy.
Expand Down