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)
|
2018-08-15 03:45:18 +08:00
|
|
|
#redis="redis://127.0.0.1:6379/3"
|
2017-08-15 21:41:18 +08:00
|
|
|
|
2018-01-02 21:04:01 +08:00
|
|
|
# WildDuck allows using different kind of data in different databases
|
2017-08-15 21:41:18 +08:00
|
|
|
# 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
|
|
|
|
2018-08-15 03:45:18 +08:00
|
|
|
[redis]
|
|
|
|
host="127.0.0.1"
|
|
|
|
port=6379
|
|
|
|
db=3
|
|
|
|
|
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
|