Commit Graph
23 Commits
Author SHA1 Message Date
Ben Banfield-Zanin f4e3457ba0 Fix HAProxy backend IP address flapping 2026-03-11 10:32:29 +00:00
Ben Banfield-Zanin c6315e00a9 Introduce networking.ipFamily to switch between IPv4, IPv6 or both binds 2025-12-04 16:26:05 +00:00
Bardi Harborow 6f42187783 Listen on IPv6 addresses for HAProxy traffic
This commit modifies the HAProxy configuration file to direct HAProxy to create sockets in dual-stack mode so that traffic can be received via IPv4 or IPv6. Previously, sockets were created in IPv4 mode only. This was particularly problematic in IPv6-only environments where IPv4 is not routable.
2025-12-03 11:54:49 +11:00
Ben Banfield-Zanin 9dddd30062 Remove explicit configuration of HAProxy maxconn at the global and frontend level.
At the global level it is computed based on `ulimit -n` as per https://docs.haproxy.org/3.1/configuration.html#maxconn.

At the frontend level, it defaults to the global `maxconn` if omitted.

Removing `fullconn` from `defaults` removes it from each `backend`. This defaults to 10%
of each the `maxconn` for each `frontend` that routes to the backend. Given each
`server` has much lower `maxconn` it feels fine to remove this.
2025-11-24 15:21:35 +00:00
Ben Banfield-Zanin 75c884dc74 git ls-files | xargs sed -i '/^Copyright .* New Vector Ltd/a Copyright 2025 Element Creations Ltd' 2025-10-27 08:43:19 +00:00
Ben Banfield-Zanin aa20ceb3d3 Minor haproxy.cfg formatting tweak 2025-10-22 16:37:36 +01:00
Ben Banfield-Zanin 2c148dbb0c Correct the handling of multiple X-Forwarded-For headers to Synapse. 2025-10-09 11:17:44 +01:00
Ben Banfield-Zanin 84bfaf87f7 Log the X-Forwarded-For header and stop logging the Referer header in HAProxy. 2025-10-09 11:17:39 +01:00
Ben Banfield-Zanin 7f027ef0ec Move the 503 -> 429 mapping into Synapse's frontend rather than HAProxy defaults 2025-08-01 15:18:53 +01:00
Gaël Goinvic e6e4a2bd21 move keys-template and 429.http to tpl files for licenses 2025-04-17 12:00:16 +02:00
Gaël Goinvic 7c8c530f2c haproxy: move 429.http to dedicated file 2025-04-17 11:13:42 +02:00
Gaël Goinvic 8065e11823 429.http is not used anywhere 2025-04-17 10:23:29 +02:00
Gaël Goinvic e9a0495b0d haproxy: use helpers for configmap data and drop chat version from pod labels 2025-04-17 10:23:28 +02:00
Gaël Goinvic 273099b421 Licensing to AGPL-3.0-only 2025-03-20 14:15:02 +01:00
Ben Banfield-Zanin aa88d1c906 Fix incorrect missing context error messages for some configuration files 2025-03-05 09:06:39 +00:00
Ben Banfield-Zanin bd35bfbc81 The 204 backend is highly Synapse specific so put it in the Synapse fragment 2025-02-24 13:44:43 +00:00
Ben Banfield-Zanin 8c18452cce Refresh the standard CORS headers for OPTIONS requests from Synapse 2025-02-24 11:26:12 +00:00
Ben Banfield-Zanin 75fb2e7044 HAProxy: move log-format from default to specific frontend as prometheus specifies 'no log' 2024-12-19 16:24:45 +00:00
Gaël Goinvic c60b0b4de3 haproxy: prefix synapse backends & frontend 2024-12-18 17:29:27 +01:00
Gaël Goinvic f447fd8d1a pytest: check that we can fetch well known delegation 2024-12-18 17:15:27 +01:00
Gaël Goinvic ed0be60694 haproxy: refactor configmap to partially load synapse or well-known
configs
2024-12-18 17:11:43 +01:00
Gaël Goinvic 4b76d8496b chart: add well-known-delegation 2024-12-18 17:11:43 +01:00
Gaël Goinvic 4ea5ecbed7 haproxy: move to root component, common to the whole chart 2024-12-18 15:17:30 +01:00