mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Fix Nginx-example regex case-sensitivity.
Matrix endpoints are specified to be case sensitive always, fix the Nginx-example to be case-sensitive instead case-insensitive Signed-off-by: Sami Olmari <sami@olmari.fi>
This commit is contained in:
parent
750a9c617d
commit
eb401bcb77
@ -88,14 +88,14 @@ In both cases, the path `https://example.com/.well-known/matrix/client` must ret
|
||||
#### Same hostname
|
||||
The following nginx configuration can be used to pass the required endpoints to the sync proxy, running on local port 8009 (so as to not conflict with Synapse):
|
||||
```nginx
|
||||
location ~* ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync) {
|
||||
location ~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync) {
|
||||
proxy_pass http://localhost:8009;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location ~* ^(\/_matrix|\/_synapse\/client) {
|
||||
location ~ ^(\/_matrix|\/_synapse\/client) {
|
||||
proxy_pass http://localhost:8008;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
Loading…
x
Reference in New Issue
Block a user