Add input validation and add advanced logging

- Implemented input validation for binary paths, hostnames, and ports to enhance security
- Added winston-based advanced logging with debug, info, warn, and error levels
- Configured logging to output to both console and server.log file
- Included request context and unique request IDs in logs
- Fixed binary path validation to allow /home/go/status and added existence checks
This commit is contained in:
MCHost
2025-07-03 01:29:19 -04:00
parent 28d9d8aff5
commit e7d81ad5a3
3 changed files with 139 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
node_modules
.env
server.log
package-lock.json