Fix Nginx Redirect Loop After SSL Setup - How to Resolve Cloudflare 522 Due to Server Resource Exhaustion-Fix 'Permission Denied' in VS Code When File Isn't Read-Only

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.