Login error from iphone app

When i try to login to my nextcloud, i receive error:

The redirection in HTTP is not permitted.

Installation in Ubuntu 22.04-SNAP. The installation is behind the reverse proxy nginx.

Try setting overwriteprotocol to https

thanx) it worked!