1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-04-16 07:16:21 +00:00
synapse/synapse/http
Eric Eastwood 12dc6b102f
Add support to proxy outbound requests from Synapse in tests (#18158)
Adds new environment variables that can be used with the Docker image
(`SYNAPSE_HTTP_PROXY`/`SYNAPSE_HTTPS_PROXY`/`SYNAPSE_NO_PROXY`)

Useful for things like the [Secure Border
Gateway](https://element.io/server-suite/secure-border-gateways)


### Why is this necessary?

You can already configure the `HTTP_PROXY`/`HTTPS_PROXY` environment
variables to proxy outbound requests but setting this globally in the
Docker image affects all processes which isn't always desirable or
workable in the case where the proxy is running in the Docker image
itself (because the Debian packages will fail to download because the
proxy isn't up and running yet) . Adding Synapse specific environment
variables
(`SYNAPSE_HTTP_PROXY`/`SYNAPSE_HTTPS_PROXY`/`SYNAPSE_NO_PROXY`) makes
things much more targetable.
2025-02-17 10:23:04 -06:00
..
federation Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
additional_resource.py Update license headers 2023-11-21 15:29:58 -05:00
client.py Cleanup Python 3.8 leftovers (#17967) 2025-02-10 16:53:24 +00:00
connectproxyclient.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
matrixfederationclient.py Cleanup Python 3.8 leftovers (#17967) 2025-02-10 16:53:24 +00:00
proxy.py Remove usage of internal header encoding API (#17894) 2024-11-04 12:20:07 -06:00
proxyagent.py Add support to proxy outbound requests from Synapse in tests (#18158) 2025-02-17 10:23:04 -06:00
replicationagent.py Fix mypy errors on Twisted 24.11.0 (#17998) 2024-12-18 11:49:38 +00:00
request_metrics.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
server.py Cleanup Python 3.8 leftovers (#17967) 2025-02-10 16:53:24 +00:00
servlet.py Cleanup Python 3.8 leftovers (#17967) 2025-02-10 16:53:24 +00:00
site.py Don't allow unsupported content-type 2024-12-03 09:53:21 +01:00
types.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00