Websocket with haproxy or nginx

I’m trying to deploy a websocket service and I seek help on how to use and configure either haproxy or nginx (machine) charms to have SSL/TLS with LetsEncrypt certificates.

I know how to generate and use the certificates, but I don’t know which charm to use or how it should be configured.

Any help appreciated.

Update here.

Turns out that the process to deploy a standard web service works with haproxy.

I run now my websocket service with ssl termination (wss://) with the haproxy charm.