This patch should fix nextcloud's own wrong perception of being available over http instead of https.