IO-2391 Add IP address to Server API Check

This commit is contained in:
Allan Carr
2023-09-06 09:06:05 -07:00
parent 763b199646
commit bc7d0ef171

View File

@@ -74,7 +74,7 @@ app.get("/test", async function (req, res) {
logger.log("test-api-status", "DEBUG", "api", { commit });
sendEmail.sendServerEmail({
subject: `API Check - ${process.env.NODE_ENV}`,
text: `Server API check has come in. `,
text: `Server API check has come in. Remote IP: ${req.socket.remoteAddress}, X-Forwarded-For: ${req.header('x-forwarded-for')}`,
});
res.status(200).send(`OK - ${commit}`);
});