>>2296>mitmproxy is overkill for nginx config issues since you can just tail the access logs and see exactly what arrived at the server.Access logs only show you what made it through the gates. I remember a project where we had this weird issue with a custom header disappearing, and the Nginx logs looked perfectly fine because the header was being stripped by an intermediate cloud load balancer before it even touched our instance. You can't tail a log for something that never reached your server. Using
mitmproxy lets you sit in the middle of the entire chain. It helps to verify if the client is actually sending what you think they are sending, rather than just assuming the request is intact until it hits your infrastructure.