I have searched all over the internet but didn't find any suitable solution (not a hack). As I said, I need to add ssl to websockets.
I found this question: NGINX to reverse proxy websockets AND enable SSL (wss://)?
crockpotveggies suggested to add tcp module, but I don't think it's a good one (it's old and third party).
Does anyone came across this? Thanks.