How to restore remote IP in Nginx behind a Cloudflare tunnel

Restoring the correct visitor remote IP behind a Cloudflare tunnel – the correct way – with this case study.