Skip to content

Instantly share code, notes, and snippets.

@gigabyteservice
Created May 31, 2022 17:25
Show Gist options
  • Save gigabyteservice/a8c633aa55535b7e76e79a0703198aed to your computer and use it in GitHub Desktop.
Save gigabyteservice/a8c633aa55535b7e76e79a0703198aed to your computer and use it in GitHub Desktop.
# mongod.conf
# remote access + Authetication enable
# location: /etc/mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 0.0.0.0
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
#security:
security:
authorization: enabled
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment