fix(security): rate limiting, CORS restriction, tableName allowlist, non-root Docker, migration entrypoint, aria-live

This commit is contained in:
Experiments DB Dev
2026-04-15 13:25:18 -04:00
parent 5460a93217
commit 9b3c883bf0
11 changed files with 146 additions and 15 deletions
+1 -6
View File
@@ -7,12 +7,7 @@ async function startServer() {
try {
await prisma.$connect();
console.log('Database connected successfully');
if (process.env.NODE_ENV === 'production') {
const { execSync } = require('child_process');
execSync('npx prisma migrate deploy', { stdio: 'inherit' });
}
// Note: migrations are run by docker-entrypoint.sh before this process starts
app.listen(PORT, '0.0.0.0', () => {
console.log(`Server running on port ${PORT}`);
});