Merge pull request #226 from olmari/main

Fix Nginx-example regex case-sensitivity.
This commit is contained in:
kegsay 2023-07-28 03:09:48 -07:00 committed by GitHub
commit 13673175b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;