|
|
|
# This is a complete sdb configuration template which is always kept updated
|
|
|
|
# to include all the configuration options. I encourage you to always use this
|
|
|
|
# when you use a configuration file
|
|
|
|
# Instead of deleting entire sections from this file, comment them out, so that you
|
|
|
|
# now what you've kept enabled and what you've kept disabled. This helps avoid
|
|
|
|
# configuration problems during production
|
|
|
|
|
|
|
|
# This is a *REQUIRED* key
|
|
|
|
[server]
|
|
|
|
host = "127.0.0.1" # The IP address to which you want sdb to bind to
|
|
|
|
port = 2003 # The port to which you want sdb to bind to
|
|
|
|
noart = false # Set `noart` to true if you want to disable terminal artwork
|
|
|
|
maxcon = 50000 # set the maximum number of clients that the server can accept
|
|
|
|
mode = "dev" # Set this to `prod` when you're running in production and `dev` when in development
|
|
|
|
|
|
|
|
# This key is *OPTIONAL*
|
|
|
|
[bgsave]
|
|
|
|
# Run `BGSAVE` `every` seconds. For example, setting this to 60 will cause BGSAVE to run
|
|
|
|
# after every 2 minutes
|
|
|
|
enabled = true
|
|
|
|
every = 120
|
|
|
|
|
|
|
|
# This key is *OPTIONAL*
|
|
|
|
[snapshot]
|
|
|
|
every = 3600 # Make a snapshot after every 1 hour (60min * 60sec= 3600secs)
|
|
|
|
atmost = 4 # Keep the 4 most recent snapshots
|
|
|
|
failsafe = true # stops accepting writes if snapshotting fails
|
|
|
|
|
|
|
|
# This key is *OPTIONAL*, used for TLS/SSL config
|
|
|
|
[ssl]
|
|
|
|
key = "/path/to/keyfile.pem"
|
|
|
|
chain = "/path/to/chain.pem"
|
|
|
|
port = 2004
|
|
|
|
only = true # optional to enable SSL-only requests
|
|
|
|
passin = "/path/to/cert/passphrase.txt" # optional to programmatically verify the TLS cert
|