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:
Sami Olmari 2023-07-27 00:17:21 +03:00
parent 750a9c617d
commit eb401bcb77
No known key found for this signature in database
GPG Key ID: 7FB0A1CB2DD8D89D

View File

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