Infrastructure
A store that stays online: Cloudflare, servers and safe releases
- Cloudflare
- Nginx
- Linux
- PM2
- PostgreSQL
- Redis
The problem
A public store attracts attacks and login abuse, and each release can take it offline. Behind a proxy, the server can also lose track of the real visitor, so login limits fail.
What I did
- Configured Cloudflare DDoS protection and restricted the server to Cloudflare traffic
- Verified the real visitor behind the proxy and limited login-code attempts
- Split storefront, API and worker processes; a failed build never restarts them
Security controls by layer.
- EdgeCloudflareDDoS protection · request filtering
- OriginRestrict origin accessTrusted proxy · HTTPS · origin restrictions
- Request identityVerify signed assertionsBackend checks the signed IP, site, and timestamp
- Account protectionLimit email-code requestsIP + email limits · cooldown · attempts · expiry