HF RL Explorer

Task: Fix Nginx Redirect Loop with Cloudflare Flexible SSL

Task: Fix Nginx Redirect Loop with Cloudflare Flexible SSL: a task in Terminal-Lego-15k (Harbor dataset). When using Cloudflare's Flexible SSL mode, Cloudflare terminates SSL at its edge and connects to the origin server over plain HTTP (port 80). If the Nginx configuration unconditionally…

The task

When using Cloudflare's **Flexible SSL** mode, Cloudflare terminates SSL at its edge and connects to the origin server over plain HTTP (port 80). If the Nginx configuration unconditionally redirects all HTTP traffic to HTTPS, a redirect loop occurs:

Part of PrimeIntellect/Terminal-Lego-15k.