2017-08-15 21:41:18 +08:00
|
|
|
# mongodb connection string for the main database
|
|
|
|
mongo="mongodb://127.0.0.1:27017/wildduck"
|
|
|
|
|
2017-10-03 21:05:46 +08:00
|
|
|
# redis connection string to connect to a single master (see below for Sentinel example)
|
2017-08-15 21:41:18 +08:00
|
|
|
redis="redis://127.0.0.1:6379/3"
|
|
|
|
|
|
|
|
# Wild Duck allows using different kind of data in different databases
|
|
|
|
# If you do not provide a database config value, then main database connection
|
|
|
|
# is used for everything
|
|
|
|
# You can either use a database name (uses shared connection) or a configutaion
|
|
|
|
# url (creates a separate connection) for each databases
|
|
|
|
|
|
|
|
# Optional database name or connection url for GridFS if you do not want to
|
|
|
|
# use the main db for storing attachments. Useful if you want
|
|
|
|
# to use a different mount folder or storage engine
|
|
|
|
#gridfs="wildduck"
|
|
|
|
|
|
|
|
# Optional database name or connection url for users collection if you do not want to
|
|
|
|
# use the main db for storing user/address data. Useful if you want
|
|
|
|
# to use a different mount folder or storage engine
|
|
|
|
#users="wildduck"
|
|
|
|
|
|
|
|
# Optional database name or connection url for ZoneMTA queue database. This is
|
|
|
|
# used to push outbound emails to the sending queue
|
2017-10-20 04:33:36 +08:00
|
|
|
sender="zone-mta"
|
2017-08-15 21:41:18 +08:00
|
|
|
|
|
|
|
#queued="mail"
|
2017-10-03 21:05:46 +08:00
|
|
|
|
|
|
|
## Connect to Redis Sentinel instead of single master
|
|
|
|
# [redis]
|
|
|
|
# name="mymaster"
|
|
|
|
# password=""
|
|
|
|
# db=3
|
|
|
|
# [[redis.sentinels]]
|
|
|
|
# host="54.36.85.113"
|
|
|
|
# port=26379
|
|
|
|
# [[redis.sentinels]]
|
|
|
|
# host="54.36.85.114"
|
|
|
|
# port=26379
|
|
|
|
# [[redis.sentinels]]
|
|
|
|
# host="54.36.85.115"
|
|
|
|
# port=26379
|