Ubuntu Server Setup
2. Install Nginx
3. Install MongoDB
4. Install Certbot
5. Create Nginx Configuration
Paste this configuration:
6. Enable Nginx Configuration
7. Setup SSL Certificate
8. Configure MongoDB Security
In MongoDB shell:
Edit MongoDB config
Add these lines:
Restart MongoDB
9. Configure Firewall
Cloudflare Setup Steps
Verification Commands
Check Nginx status
Check MongoDB status
Check SSL certificate
Test MongoDB authentication
Maintenance Commands
System updates
View Nginx logs
View MongoDB logs
Security Checklist
Best Practices
Troubleshooting
Useful Resources
Last updated