Add Docker support and enhance server configuration

- Created Dockerfile for containerized deployment
- Added .dockerignore to optimize Docker build context
- Updated README with comprehensive Docker setup instructions
- Implemented new server endpoints:
  * Health check endpoint
  * Device listing
  * Device control
  * SSE event subscription
- Enhanced security middleware with request validation and input sanitization
- Added error handling and token-based authentication for new endpoints
This commit is contained in:
jango-blockchained
2025-02-01 04:21:45 +01:00
parent b855b05dca
commit 13773d2977
5 changed files with 244 additions and 25 deletions

31
.dockerignore Normal file
View File

@@ -0,0 +1,31 @@
# Dependencies
node_modules
npm-debug.log
yarn-debug.log
yarn-error.log
# Build output
dist
# Environment files
.env*
!.env.example
# Git
.git
.gitignore
# IDE
.vscode
.idea
# Test files
coverage
__tests__
jest.config.*
*.test.ts
# Misc
*.md
.DS_Store
*.log