Production Guide
Best practices for running Auth in production.
Pre-Production Checklist
Database
[ ] Use PostgreSQL (not SQLite)
[ ] Configure connection pooling
[ ] Set up automated backups
[ ] Enable WAL mode
[ ] Configure max connections
Security
[ ] Generate strong JWT secret (32+ chars)
[ ] Enable encryption
[ ] Configure HTTPS/SSL
[ ] Set up firewall rules
[ ] Disable debug mode
[ ] Configure CORS properly
[ ] Set security headers
Monitoring
[ ] Set up health checks
[ ] Configure logging
[ ] Set up error tracking
[ ] Configure metrics collection
[ ] Set up alerts
Performance
[ ] Configure worker processes
[ ] Set up caching
[ ] Optimize database indexes
[ ] Configure rate limiting
See Deployment and Security for detailed configuration.
Next Steps
Deployment - Deployment strategies
Security - Security practices
Troubleshooting - Common issues