Skip to content

Instantly share code, notes, and snippets.

@shahabedinh
Created February 28, 2020 23:09
Show Gist options
  • Save shahabedinh/6c7e52cecd6c2c96cfc914de785527db to your computer and use it in GitHub Desktop.
Save shahabedinh/6c7e52cecd6c2c96cfc914de785527db to your computer and use it in GitHub Desktop.
configuration file for mongod or mongos with TLS/SSL Certificate and Key
net:
tls:
mode: requireTLS
certificateKeyFile: /etc/ssl/mongodb.pem
systemLog:
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
storage:
dbPath: "/var/lib/mongodb"
processManagement:
fork: true
net:
bindIp: localhost,mongodb0.example.net
port: 27017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment