Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit ef1e418

Browse files
committed
Merge pull request #5313 from twrist/patch-1
2 parents 8f78803 + 47fa836 commit ef1e418

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog.d/5313.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update example haproxy config to a more compatible setup.

docs/reverse_proxy.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ Let's assume that we expect clients to connect to our server at
8989
bind :::443 v4v6 ssl crt /etc/ssl/haproxy/ strict-sni alpn h2,http/1.1
9090

9191
# Matrix client traffic
92-
acl matrix hdr(host) -i matrix.example.com
93-
use_backend matrix if matrix
92+
acl matrix-host hdr(host) -i matrix.example.com
93+
acl matrix-path path_beg /_matrix
94+
95+
use_backend matrix if matrix-host matrix-path
9496

9597
frontend matrix-federation
9698
bind :::8448 v4v6 ssl crt /etc/ssl/haproxy/synapse.pem alpn h2,http/1.1

0 commit comments

Comments
 (0)