forked-synapse/synapse/rest
Tim Leung ddb240293a
Add support for no_proxy and case insensitive env variables (#9372)
### Changes proposed in this PR

- Add support for the `no_proxy` and `NO_PROXY` environment variables
  - Internally rely on urllib's [`proxy_bypass_environment`](bdb941be42/Lib/urllib/request.py (L2519))
- Extract env variables using urllib's `getproxies`/[`getproxies_environment`](bdb941be42/Lib/urllib/request.py (L2488)) which supports lowercase + uppercase, preferring lowercase, except for `HTTP_PROXY` in a CGI environment

This does contain behaviour changes for consumers so making sure these are called out:
- `no_proxy`/`NO_PROXY` is now respected
- lowercase `https_proxy` is now allowed and taken over `HTTPS_PROXY`

Related to #9306 which also uses `ProxyAgent`

Signed-off-by: Timothy Leung tim95@hotmail.co.uk
2021-02-26 17:37:57 +00:00
..
admin Add an order_by field to list users' media admin API. (#8978) 2021-02-22 14:38:51 -05:00
client SSO: redirect to public URL before setting cookies (#9436) 2021-02-26 14:02:06 +00:00
consent Replace username picker with a template (#9275) 2021-02-01 15:52:50 +00:00
key Add type hints to the crypto module. (#8999) 2021-01-04 10:04:50 -05:00
media Add support for no_proxy and case insensitive env variables (#9372) 2021-02-26 17:37:57 +00:00
synapse Add back the deprecated SAML endpoint. (#9474) 2021-02-23 12:57:37 -05:00
__init__.py Show a confirmation page during user password reset (#8004) 2020-09-10 11:45:12 +01:00
health.py Add health check endpoint (#8048) 2020-08-07 14:21:24 +01:00
well_known.py Backout changes for automatically calculating the public baseurl. (#9313) 2021-02-11 11:16:54 -05:00