Proxyexclude not working

Nextcloud version (eg, 18.0.2): 18.0.6
Operating system and version (eg, Ubuntu 20.04): Centos 8
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.37
PHP version (eg, 7.1): 7.3.5

The issue you are facing:
proxyexclude not working, so no connection to onlyoffice.

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

  1. add entries in config. php as described in the admin manual
    ‘proxy’ => ‘http://PROXY:3128’,
    ‘proxyexclude’ => [‘share.domain.com’, ‘share.dom-main.com’, ‘1.2.3.4’],

  2. try to config onlyoffice

  3. connection error and proxyconnection in tcpdump

The output of your Nextcloud log in Admin > Logging:

GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 60001 milliseconds with 0 out of 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

  'proxy' => 'http://PROXY:3128',
  'proxyexclude' => ['share.domain.com', 'share.dom-main.com', '1.2.3.4'],

Sorry i do not use it. But use perhaps ‘.domain.com’ or ‘domain.com’.

'proxyexclude' => [],
For example: `['.mit.edu', 'foo.com']` .

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html

I tried that too, but there is still the connection created via the proxy.

if I comment both entries out, onlyoffice works. But then NC can not install any apps/check updates etc
I set NO_PROXY in /etc/environment too as I saw something mentioned in a git PR, but that didn’t help either.

I confirm this issue with nextcloud 18.0.7. exactly the same behaviour.

i see you replied in the github thread, that that is not implemented in NC 18.x