Things to try when a Mac HDMI display occasionally freezes — change the refresh rate with `displayplacer`, reseat the cable, etc.
Output every request header and response info to the nginx access log via a custom `log_format`, with an Ansible playbook to deploy it.
Here's something often used in Django.