Fix Infinite Redirect Loop with force ssl in Rails App Behind Nginx
Fix Infinite Redirect Loop with force ssl in Rails App Behind Nginx: a task in Terminal-Lego-15k (Harbor dataset). You are tasked with fixing an infinite redirect loop issue in a Rails application that occurs when using force ssl with an nginx reverse proxy. The application has an API controller…
The task
You are tasked with fixing an infinite redirect loop issue in a Rails application that occurs when using `force_ssl` with an nginx reverse proxy. The application has an API controller that should enforce SSL, but the current nginx configuration is causing requests to redirect infinitely between HTTP and HTTPS.
Part of PrimeIntellect/Terminal-Lego-15k.