let ip = req.headers['x-forwarded-for'] || req.ip || null; if (process.env.SERVERLESS) { ip = req.__SLS_EVENT__.requestContext.sourceIp }