rewrite default config file

pull/1/head
ansuz 8 years ago
parent 38d1a1a291
commit 0296989515

@ -17,52 +17,30 @@ module.exports = {
*/ */
logToStdout: false, logToStdout: false,
/* Cryptpad can be configured to remove channels some number of ms /*
after the last remaining client has disconnected. Cryptpad stores each document in an individual file on your hard drive.
Specify a directory where files should be stored.
Default behaviour is to keep channels forever. It will be created automatically if it does not already exist.
If you enable channel removal, the default removal time is one minute */
*/ filePath: './datastore/',
removeChannels: false,
channelRemovalTimeout: 60000, /*
You have the option of specifying an alternative storage adaptor.
// You now have a choice of storage engines These status of these alternatives are specified in their READMEs,
which are available at the following URLs:
/* amnesiadb only exists in memory.
* it will not persist across server restarts mongodb: a noSQL database
* it will not scale well if your server stays alive for a long time. https://github.com/xwiki-labs/cryptpad-mongo-store
* but it is completely dependency free amnesiadb: in memory storage
*/ https://github.com/xwiki-labs/cryptpad-amnesia-store
//storage: './storage/amnesia', leveldb: a simple, fast, key-value store
https://github.com/xwiki-labs/cryptpad-level-store
/* the 'lvl' storage module uses leveldb sql: an adaptor for a variety of sql databases via knexjs
* it persists, and will perform better than amnesiadb https://github.com/xwiki-labs/cryptpad-sql-store
* you will need to run 'npm install level' to use it
* For the most up to date solution, use the default storage adaptor.
* you can provide a path to a database folder, which will be created */
* if it does not already exist. If you use level and do not pass a path storage: './storage/file',
* it will be created at cryptpad/test.level.db
*
* to delete all pads, run `rm -rf $YOUR_DB`
*/
storage: './storage/lvl',
levelPath: './test.level.db'
/* mongo is the original storage engine for cryptpad
* it has been more thoroughly tested, but requires a little more setup
*/
// storage: './storage/mongo',
/* this url is accessible over the internet, it is useful for testing
* but should not be used in production
*/
// mongoUri: "mongodb://demo_user:demo_password@ds027769.mongolab.com:27769/demo_database",
/* mongoUri should really be used to refer to a local installation of mongodb
* to install the mongodb client, run `npm install mongodb`
*/
// mongoUri: "mongodb://localhost:27017/cryptpad",
// mongoCollectionName: 'cryptpad',
/* it is recommended that you serve cryptpad over https /* it is recommended that you serve cryptpad over https
* the filepaths below are used to configure your certificates * the filepaths below are used to configure your certificates

Loading…
Cancel
Save