Add check for x-forwarded-proto to fix req.protocol not showing https.