Nextcloud redirecting bug since 15.0.2

The problem is that the protocol information in the main-url is ignored since 15.0.2. To fix this you have to add the protocol-overwrite directive in the nextcloud/config/config.php 'overwriteprotocol' => 'https',  
en_USEnglish