arnaudw's solution worked for me, though for apache the command is
RequestHeader set X-Forwarded-Proto "https"
Thanks so much for the fix - I also don't understand this, but believe it has to do with a recent update to nodebb since my login was working in v1.16.0 and I updated to v1.16.2