wait, my config is different:
'trusted_domains' =>
array (
0 => 'www.my-domain.tld',
)
'overwrite.cli.url' => 'https://www.my-domain.tld/sub-folder',
'overwritehost' => 'my-domain.tld',
'overwriteprotocol' => 'https',
your 'overwrite.cli.url'
looks more to me like the value expected fo the overwriteprotocol
(although I’m surprised to see the ://
part included there…