CONNECT passthrough on nginx

A while ago I explored easy hacks on how to encapsulate SSH into HTTPS on apache2 . Since then I moved a few my systems from apache2 to nginx to play a bit with http/2 and http/3 . I wanted to port my hack to nginx . At the time nginx did not have direct support for CONNECT handling. I used chobits/ngx_http_proxy_connect_module external module to implement CONNECT . But around the end of 2025 the…