I'm really new on "tweaking" with nginx configs and I've been having this issue. What could be causing my website to respond with a 502 bad gateway after changing nginx configuration from ssl_protocols TLSv1.2 to TLSv1.3 ?
If I set ssl_protocols TLSv1.2 TLSv1.3 the website works with no problem. But as soon as I remove the TLSv1.2 part it breaks.
Note that the "502 bad gateway" message does not have the "nginx version" at the bottom of it and nothing unusual is getting logged inside /var/log/nginx/error.log
Output for nginx -V
nginx version: nginx/1.18.0 (Ubuntu)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
Any idea on how to proceed is appreciated!