Production Deployment¶
Guidelines for deploying Orb in production environments.
Architecture¶
Recommended Setup¶
Internet
↓
Load Balancer (TLS termination)
↓
Reverse Proxy (Nginx/Caddy)
↓
Orb Relay Servers (multiple instances)
↓
Session Database (Redis/PostgreSQL)
TLS Configuration¶
Generate Certificates¶
# Let's Encrypt
sudo certbot certonly --standalone -d relay.example.com
# Self-signed (development only)
openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365
Configure TLS Relay¶
Use reverse proxy (Nginx/Caddy) for TLS termination.
High Availability¶
Load Balancing¶
upstream orb_relays {
least_conn;
server relay1.internal:8080;
server relay2.internal:8080;
server relay3.internal:8080;
}
Session Persistence¶
Implement sticky sessions or shared session store.
Monitoring and Logging¶
Prometheus Metrics¶
- Connection count
- Active sessions
- Bandwidth usage
- Error rates
Logging¶
Backup and Recovery¶
- Configuration backup
- Log retention
- Disaster recovery plan
Security Hardening¶
- Minimal permissions
- SELinux/AppArmor
- Firewall rules
- DDoS protection
- Rate limiting
- Regular audits
Scaling¶
Horizontal Scaling¶
Add more relay servers behind load balancer.
Vertical Scaling¶
Increase CPU/RAM for existing servers.