Nginx Container Returning HTTP 302 for /metrics Endpoint Despite Allowing Anonymous Access
I’m running an Nginx container using Ansible and Docker. I have configured Nginx to allow anonymous access to the /metrics endpoint and set up a reverse proxy. Despite this, accessing the /metrics endpoint results in an HTTP 302 redirect to an authentication page.