-
- Downloads
Support for routing outbound HTTP requests via a proxy (#6239)
The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy. The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`. The proxy will then be used for * push * url previews * phone-home stats * recaptcha validation * CAS auth validation It will *not* be used for: * Application Services * Identity servers * Outbound federation * In worker configurations, connections from workers to masters Fixes #4198.
Showing
- changelog.d/6238.feature 1 addition, 0 deletionschangelog.d/6238.feature
- synapse/app/homeserver.py 1 addition, 1 deletionsynapse/app/homeserver.py
- synapse/handlers/ui_auth/checkers.py 1 addition, 1 deletionsynapse/handlers/ui_auth/checkers.py
- synapse/http/client.py 15 additions, 2 deletionssynapse/http/client.py
- synapse/http/connectproxyclient.py 195 additions, 0 deletionssynapse/http/connectproxyclient.py
- synapse/http/proxyagent.py 195 additions, 0 deletionssynapse/http/proxyagent.py
- synapse/push/httppusher.py 1 addition, 1 deletionsynapse/push/httppusher.py
- synapse/rest/client/v1/login.py 1 addition, 1 deletionsynapse/rest/client/v1/login.py
- synapse/rest/media/v1/preview_url_resource.py 2 additions, 0 deletionssynapse/rest/media/v1/preview_url_resource.py
- synapse/server.py 9 additions, 0 deletionssynapse/server.py
- synapse/server.pyi 9 additions, 0 deletionssynapse/server.pyi
- tests/http/__init__.py 17 additions, 0 deletionstests/http/__init__.py
- tests/http/federation/test_matrix_federation_agent.py 8 additions, 3 deletionstests/http/federation/test_matrix_federation_agent.py
- tests/http/test_proxyagent.py 334 additions, 0 deletionstests/http/test_proxyagent.py
- tests/push/test_http.py 1 addition, 1 deletiontests/push/test_http.py
- tests/server.py 22 additions, 2 deletionstests/server.py
Loading
Please register or sign in to comment