IO-2391 Add IP address to Server API Check
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user