Closed ripreal closed 2 years ago
UPDATE
I found out about MONGO_OPTIONS environment variable https://docs.rocket.chat/installation/manual-installation/mongo-options but still cannot understand how to pass path to SSL certificate correctly
@ripreal They provided this.
export TLS_CRT=$(cat /pems/tls.crt | awk '{printf "%s\\n",$0} END {print ""}')
export PEM=$(cat /pems/mongo.pem | awk '{printf "%s\\n",$0} END {print ""}')
export KEY=$(cat /pems/mongo.key | awk '{printf "%s\\n",$0} END {print ""}')
# now insert all the credentials into the JSON OPTIONS string
export MONGO_OPTIONS='{"sslCA":["'${TLS_CRT}'"],"sslCert":"'${PEM}'","sslKey":"'${KEY}'"}'
Have you tried exporting this variables for the MONGO OPTIONS environment variable to work? You need to replace your SSL certificate, PEM and KEY by renaming the path to the export variables TLS_CRT, PEM , KEY noted above.
Hello @ripreal do you able to solved it? I am having the same issue.
No. Now i'm using plain connection instead with another mongo provider
I'd like to use specific third-party mongo cloud provider. The povider that i've chosen support only one way to make connection - via ssl. For example my connection string looks something similar to this.
In addition i also have to pass certificate inside connection options. (*.pem file) My questions is how can i pass certificate file with rocketchat dockerfile?
Without certificate when i run rocketchat docker container i get error:
My docker-compose: