I'm really not an expert regarding nginx configuration, but I don't see anything related to protocol forwarding in the configuration you pasted. Did I miss it ?