- Added helmet for security headers and configured content security policy - Implemented CORS with a whitelist for allowed origins - Introduced express-validator for input validation in API endpoints - Set request size limits to prevent DoS attacks - Added global error handling and 404 response - Updated TypeScript configuration to use node16 module resolution - Improved Docker Compose configuration for security and resource limits - Created a comprehensive .env.example for environment configuration - Implemented automated security scans in CI/CD with Trivy - Added cleanup script for debugging ports - Established a detailed security policy document
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug Vite",
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"url": "http://localhost:3000",
|
|
"webRoot": "${workspaceFolder}/Client",
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"preLaunchTask": "Start Vite (after backend ready)"
|
|
},
|
|
{
|
|
"name": "Debug Backend",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeExecutable": "npx",
|
|
"args": ["tsx", "watch", "--inspect=9229", "./src/index.ts"],
|
|
"cwd": "${workspaceFolder}/Server",
|
|
"console": "integratedTerminal",
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"preLaunchTask": "Clean Debug Ports",
|
|
"envFile": "${workspaceFolder}/Server/.env",
|
|
"env": {
|
|
"PORT": "3001"
|
|
}
|
|
},
|
|
|
|
|
|
{
|
|
"name": "Debug Jest Tests",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/Server/node_modules/jest/bin/jest.js",
|
|
"args": [
|
|
"--config=Server/tests/jest.config.cjs",
|
|
"--runInBand"
|
|
],
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"skipFiles": ["<node_internals>/**"]
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Compound Debug",
|
|
"configurations": ["Debug Vite", "Debug Backend"]
|
|
}
|
|
]
|
|
}
|