Incorrect Documentation

This is an issue with the documentation posted here:

https://docs.nextcloud.com/server/9/admin_manual/configuration_server/reverse_proxy_configuration.html

It posts that the config.php file should amended as such:

<?php
$CONFIG = array (
  "trusted_proxies"   => ['10.0.0.1'],
  "overwritehost"     => "ssl-proxy.tld",
  "overwriteprotocol" => "https",
  "overwritewebroot"  => "/domain.tld/nextcloud",
  "overwritecondaddr" => "^10\.0\.0\.1$",
);

The quotes cause issues, it should be single quote ’ instead. But also this configuration results in an error of “Too Many Redirects”. I have setup my config.php as:

'trusted_proxies'   => ['IP_OF_REVERSEPROXY'],
'overwrite.cli.url' => 'https://nextcloud.domain.com',
'overwritehost'     => 'nextcloud.domain.com',
'overwriteprotocol' => 'https',

File an issue or make a pull request on https://github.com/nextcloud/documentation

Version 9 (your link) is outdated and no longer supported.

https://docs.nextcloud.com/server/13/admin_manual/configuration_server/reverse_proxy_configuration.html