No login is possible after recovery a Discourse Backup on a new server

Try to check if force_https is enabled using the console

SiteSetting.force_https

If it is false, set it to true

SiteSetting.force_https = true