This is an issue with the documentation posted here:
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',