log the request to see what we can use in lightsail to lock it down

This commit is contained in:
Tom Broughton 2023-10-27 12:00:26 +01:00
parent a1bbca84ca
commit 739cc7a916

View file

@ -39,8 +39,10 @@ function safeShutdownGuard(req, res, next) {
// express // express
app.use(safeShutdownGuard); app.use(safeShutdownGuard);
app.use(session); app.use(session);
//just respond with success for healthchecker no matter what the ip addess is //just respond with success for healthchecker no matter what the ip addess is
app.get('/status', function (req, res) { app.get('/status', function (req, res) {
console.log(req);
res.status(200).send('success'); res.status(200).send('success');
}); });
//restrict access to anything else via ip addresses //restrict access to anything else via ip addresses