nextcloud/lib
Mohammed Abdellatif 98d6415264 Add support for GuzzleHTTP 'no' proxy
The custom config allows to setup a proxy URI that is passed to
GuzzleHTTP client as request options. Guzzle has the option to receive
an array of proxies for each URI scheme as well as 'no' key value pair
to provide a list of host names that should not be proxied to.

Guzzle would automatically populate these options with HTTPS_PROXY
and NO_PROXY environment variables. However, when providing a 'proxy'
request option, default values will be overriden and it is required to
explicitly provide the 'no' value if needed.

More info:
http://docs.guzzlephp.org/en/stable/request-options.html#proxy

This commit will add support for a new config 'proxyexclude', which
takes a list of host names to be excluded.

It will also provide 'proxy' request option as an array instead of a
string to Guzzle, and populate 'http' and 'https' URI schemes with
proxy URI, and 'no' with 'proxyexclude' list.

Also, if no 'proxy' is configured, it will leave out 'proxy' request
option, so it won't override Guzzle default values.

Sample config file includes a hint on how to explicitly sync
'proxyexclude' with NO_PROXY, and a note about default values.

Signed-off-by: Mohammed Abdellatif <m.latief@gmail.com>
2020-02-29 19:19:23 +02:00
..
composer Merge pull request #19493 from nextcloud/simplefile-new-lazy 2020-02-28 16:07:02 +01:00
l10n [tx-robot] updated from transifex 2020-02-28 02:18:36 +00:00
private Add support for GuzzleHTTP 'no' proxy 2020-02-29 19:19:23 +02:00
public Merge pull request #19493 from nextcloud/simplefile-new-lazy 2020-02-28 16:07:02 +01:00
autoloader.php Update license headers 2019-12-05 15:38:45 +01:00
base.php Check that username and password are present. 2020-02-23 18:53:17 +01:00
versioncheck.php Update license headers 2019-12-05 15:38:45 +01:00