From b2e60189bd32cc83a2168e96c48eccdc8f476802 Mon Sep 17 00:00:00 2001 From: Tom Broughton Date: Fri, 27 Oct 2023 12:45:31 +0100 Subject: [PATCH] commented out ipfilter and logging request and headers --- app/server/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/server/app.js b/app/server/app.js index cf55093..136fdd9 100644 --- a/app/server/app.js +++ b/app/server/app.js @@ -42,11 +42,17 @@ app.use(session); //just respond with success for healthchecker no matter what the ip addess is app.get('/status', function (req, res) { + res.status(200).send('success'); +}); +app.get('/headers', function (req, res) { + console.log("request"); console.log(req); + console.log("headers"); + console.log(req.headers); res.status(200).send('success'); }); //restrict access to anything else via ip addresses -if (config.ipfilter.allowed_ips.length > 0) app.use(ipfilter(config.ipfilter.allowed_ips, { mode: 'allow' })) +//if (config.ipfilter.allowed_ips.length > 0) app.use(ipfilter(config.ipfilter.allowed_ips, { mode: 'allow' })) if (config.accesslog) app.use(logger('common')); app.disable('x-powered-by'); app.use(favicon(path.join(publicPath, 'favicon.ico')));