External MongoDB in rocketchat

Hello!

I’m trying to deploy my rocket.chat instance with snap using an external mongodb that have username, password and pem key file for ssl connection, but I don’t know how I can set my rocketchat settings with it. Which settings or parameters I need to set in rocketchat server to due that?

I did try using these commands:
sudo snap set rocketchat-server mongo-url=mongodb://:/
sudo snap set rocketchat-server port=
(Snaps - Rocket.Chat Docs)

These settings does not have paramaters like username, password or pem file for ssl connections. Could you help me even with some direction?

Thanks!

I have no idea how snap works, but MongoDB URI is documented here: Connection String URI Format — MongoDB Manual. There are options to set username, password and certificate.