56 lines
1011 B
Plaintext
56 lines
1011 B
Plaintext
# 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
|
|
dbPath: /media/data/mongodb
|
|
journal:
|
|
enabled: true
|
|
|
|
# engine:
|
|
# mmapv1:
|
|
# wiredTiger:
|
|
|
|
# where to write logging data.
|
|
systemLog:
|
|
destination: file
|
|
logAppend: true
|
|
path: "/var/log/mongodb/mongod.log"
|
|
logRotate: reopen
|
|
|
|
# network interfaces
|
|
net:
|
|
port: 27017
|
|
bindIp: 0.0.0.0
|
|
tls:
|
|
mode: preferTLS
|
|
certificateKeyFile: /etc/mongodb/ssl/localhost.pem
|
|
CAFile: /etc/mongodb/ssl/rootCA.crt
|
|
clusterFile: /etc/mongodb/ssl/localhost.pem
|
|
|
|
# how the process runs
|
|
processManagement:
|
|
timeZoneInfo: /usr/share/zoneinfo
|
|
|
|
security:
|
|
# authorization: enabled
|
|
# keyFile or x.509 cert is mandantary from mongo version 4.4
|
|
# keyFile: /media/data/mongodb.key
|
|
clusterAuthMode: x509
|
|
|
|
#operationProfiling:
|
|
|
|
replication:
|
|
replSetName: rs0
|
|
|
|
#sharding:
|
|
|
|
## Enterprise-Only Options:
|
|
|
|
#auditLog:
|
|
|
|
#snmp:
|