Update index.js

This commit is contained in:
Luke Honeyball 2024-08-14 12:08:52 +02:00 committed by GitHub
parent 63d06da8a8
commit 784caa2265
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,7 @@ async function appStart () {
logger.info('Backend PID ' + process.pid + ' listening on port 3000 ...'); logger.info('Backend PID ' + process.pid + ' listening on port 3000 ...');
process.on('SIGTERM', () => { process.on('SIGTERM', () => {
//insecure. can be exploited. please fix this.
logger.info('PID ' + process.pid + ' received SIGTERM'); logger.info('PID ' + process.pid + ' received SIGTERM');
server.close(() => { server.close(() => {
logger.info('Stopping.'); logger.info('Stopping.');