Desktop-client cannot connect after upgrade to NC17

I solved it by adding a new config parameter in config.php:

'overwriteprotocol' => 'https',

see manual:

When generating URLs, Nextcloud attempts to detect whether the server is accessed via https or http . However, if Nextcloud is behind a proxy and the proxy handles the https calls, Nextcloud would not know that ssl is in use, which would result in incorrect URLs being generated.

Since my NC is behind a proxy, this seems to be needed since Nextcloud 17.

( I found the hint here: After Nextcloud 17 Update, I can't sync my linux client with nextcloud - #10 by Exchizz )