I saw this answer from 10 years ago that's more or less about the same thing, except it involves HTTP rather than HTTPS: nginx: dump HTTP requests for debugging
Is there a way to dump the encrypted traffic through NGINX proxy_pass as plaintext? I tried tcpdump/Wireshark on port 443 but all it gave me was jumbled encrypted text.
A bit of context, the upstream server is a remote HTTPS Apache server so the NGINX instance works as a CDN.
If this is not possible with NGINX, is there another proxy server software that allows for this? Is the proxied traffic (temporarily) stored in plaintext on system memory?
I know there is a security concern but this is on my own server and I just want to know if and how this can be done. I'm also in the process of developing an anti-DoS system that filters requests.