Spaces:
Sleeping
Sleeping
Commit History
-
Fix: Use persistent /data/uploads directory for Hugging Face
70b46f4
-
Fix: Keep devDependencies for prisma seed ts-node
f907bb1 -
Production-ready: Security hardening, RBAC, logging, audit, DB indexes, compression
Phase 1 - Security: - Helmet security headers with CSP - Rate limiting (global/login/API) - CORS with env-based config - Secure file upload (block SVG, MIME validation) - Environment validation at startup Phase 2 - RBAC: - Role-based authorization (SUPER_ADMIN/ADMIN/MANAGER/STAFF/USER) - Mutation routes protected with authorize middleware - GET routes remain public Phase 5 - Observability: - Structured logger (JSON/colored) - Request logging with correlation IDs - Failed login attempt tracking - Audit log model and utility Phase 6 - Database: - Added indexes on Project, Skill, Contact, Analytics - AuditLog model for change tracking - Prisma schema optimization Phase 7 - Docker: - Production Dockerfile with --omit=dev - Compression middleware - Health check endpoints (/health, /health/database, /health/storage)9f5a703
-
Fix: Single server - backend serves frontend directly, no proxy
83e9b3c -
Fix: Install openssl explicitly for Prisma
b9686c0 -
Fix: Use node:20-bullseye for libssl1.1 compatibility
35247dd -
Fix: Use node:20-slim for Prisma + fix uploads path
ad3660e -
Fix: Add OpenSSL for Prisma + fix Express wildcard route
4bbf6c8 -
Fix: Create uploads dir instead of copying empty folder
1b54aa3 -
Initial commit
moustafa781d1e4c