Fix Nginx 502 Bad Gateway: Upstream Connection Refused - DNS Probe Finished NXDOMAIN: Troubleshooting Checklist-Resolve NET::ERR_CERT_AUTHORITY_INVALID on Managed Devices

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