From eb401bcb770d2a16248d2847c6e22adc7580810e Mon Sep 17 00:00:00 2001 From: Sami Olmari Date: Thu, 27 Jul 2023 00:17:21 +0300 Subject: [PATCH] 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 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26ea18d7..963f81f5 100644 --- a/README.md +++ b/README.md @@ -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;