Connection Wizard is looping between "Log in" and "Grant access"

The overwriteprotocol solution helped me as well, thank you!
This can vary for others, but for reference here’s what I had to do to stick this change into my docker container:

docker exec -it nextcloud /bin/bash
apt-get update
apt-get install -y vim
cd config/
vim config.php
insert the line: 'overwriteprotocol' => 'https',
5 Likes