summary refs log tree commit diff
diff options
context:
space:
mode:
authorvillepeh <100730729+villepeh@users.noreply.github.com>2022-03-28 13:48:18 +0300
committerGitHub <noreply@github.com>2022-03-28 10:48:18 +0000
commita4643a685cb4acb81a5655ef3a5c8b9bbc588c0c (patch)
treeb4278cced2304a545d54e468ed23b797e29952cc
parentAdd restrictions by default to open registration in Synapse (#12091) (diff)
downloadsynapse-a4643a685cb4acb81a5655ef3a5c8b9bbc588c0c.tar.xz
HAProxy guide update (#12279)
HAproxy reverse proxy guide update to stop sending IPv4-mapped address to HS.
-rw-r--r--changelog.d/12279.doc1
-rw-r--r--docs/reverse_proxy.md4
2 files changed, 3 insertions, 2 deletions
diff --git a/changelog.d/12279.doc b/changelog.d/12279.doc
new file mode 100644
index 0000000000..ca07104c90
--- /dev/null
+++ b/changelog.d/12279.doc
@@ -0,0 +1 @@
+HAProxy reverse proxy guide update to stop sending IPv4-mapped address to homeserver. Contributed by @villepeh.
diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md
index 1a89da50fd..5a0c847951 100644
--- a/docs/reverse_proxy.md
+++ b/docs/reverse_proxy.md
@@ -182,7 +182,7 @@ matrix.example.com {
 
 ```
 frontend https
-  bind :::443 v4v6 ssl crt /etc/ssl/haproxy/ strict-sni alpn h2,http/1.1
+  bind *:443,[::]:443 ssl crt /etc/ssl/haproxy/ strict-sni alpn h2,http/1.1
   http-request set-header X-Forwarded-Proto https if { ssl_fc }
   http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
   http-request set-header X-Forwarded-For %[src]
@@ -195,7 +195,7 @@ frontend https
   use_backend matrix if matrix-host matrix-path
 
 frontend matrix-federation
-  bind :::8448 v4v6 ssl crt /etc/ssl/haproxy/synapse.pem alpn h2,http/1.1
+  bind *:8448,[::]:8448 ssl crt /etc/ssl/haproxy/synapse.pem alpn h2,http/1.1
   http-request set-header X-Forwarded-Proto https if { ssl_fc }
   http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
   http-request set-header X-Forwarded-For %[src]