You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
5.1 KiB

  1. /*
  2. This file must be valid JSON. But comments are allowed
  3. Please edit settings.json, not settings.json.template
  4. */
  5. {
  6. // Name your instance!
  7. "title": "Etherpad",
  8. // favicon default name
  9. // alternatively, set up a fully specified Url to your own favicon
  10. "favicon": "favicon.ico",
  11. //IP and port which etherpad should bind at
  12. "ip": "0.0.0.0",
  13. "port" : 9001,
  14. // Session Key, used for reconnecting user sessions
  15. // Set this to a secure string at least 10 characters long. Do not share this value.
  16. "sessionKey" : "",
  17. /*
  18. // Node native SSL support
  19. // this is disabled by default
  20. //
  21. // make sure to have the minimum and correct file access permissions set
  22. // so that the Etherpad server can access them
  23. "ssl" : {
  24. "key" : "/path-to-your/epl-server.key",
  25. "cert" : "/path-to-your/epl-server.crt"
  26. },
  27. */
  28. //The Type of the database. You can choose between dirty, postgres, sqlite and mysql
  29. //You shouldn't use "dirty" for for anything else than testing or development
  30. /*
  31. "dbType" : "dirty",
  32. //the database specific settings
  33. "dbSettings" : {
  34. "filename" : "var/dirty.db"
  35. },
  36. */
  37. "dbType" : "sqlite",
  38. //the database specific settings
  39. "dbSettings" : {
  40. "filename" : "/var/lib/etherpad-lite/main.sqlite"
  41. },
  42. /* An Example of MySQL Configuration
  43. "dbType" : "mysql",
  44. "dbSettings" : {
  45. "user" : "root",
  46. "host" : "localhost",
  47. "password": "",
  48. "database": "store"
  49. },
  50. */
  51. //the default text of a pad
  52. "defaultPadText" : "Welcome to Etherpad!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nGet involved with Etherpad at http:\/\/etherpad.org\n",
  53. /* Users must have a session to access pads. This effectively allows only group pads to be accessed. */
  54. "requireSession" : false,
  55. /* Users may edit pads but not create new ones. Pad creation is only via the API. This applies both to group pads and regular pads. */
  56. "editOnly" : false,
  57. /* if true, all css & js will be minified before sending to the client. This will improve the loading performance massivly,
  58. but makes it impossible to debug the javascript/css */
  59. "minify" : true,
  60. /* How long may clients use served javascript code (in seconds)? Without versioning this
  61. may cause problems during deployment. Set to 0 to disable caching */
  62. "maxAge" : 21600, // 60 * 60 * 6 = 6 hours
  63. /* This is the path to the Abiword executable. Setting it to null, disables abiword.
  64. Abiword is needed to advanced import/export features of pads*/
  65. "abiword" : null,
  66. /* This setting is used if you require authentication of all users.
  67. Note: /admin always requires authentication. */
  68. "requireAuthentication": false,
  69. /* Require authorization by a module, or a user with is_admin set, see below. */
  70. "requireAuthorization": false,
  71. /* Users for basic authentication. is_admin = true gives access to /admin.
  72. If you do not uncomment this, /admin will not be available! */
  73. "users": {
  74. "admin": {
  75. "password": "acdlElmap",
  76. "is_admin": true
  77. },
  78. /*
  79. "user": {
  80. "password": "changeme1",
  81. "is_admin": false
  82. }
  83. */
  84. },
  85. // restrict socket.io transport methods
  86. "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"],
  87. /* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */
  88. "loglevel": "INFO",
  89. //Logging configuration. See log4js documentation for further information
  90. // https://github.com/nomiddlename/log4js-node
  91. // You can add as many appenders as you want here:
  92. "logconfig" :
  93. { "appenders": [
  94. { "type": "console"
  95. //, "category": "access"// only logs pad access
  96. }
  97. /*
  98. , { "type": "file"
  99. , "filename": "your-log-file-here.log"
  100. , "maxLogSize": 1024
  101. , "backups": 3 // how many log files there're gonna be at max
  102. //, "category": "test" // only log a specific category
  103. }*/
  104. /*
  105. , { "type": "logLevelFilter"
  106. , "level": "warn" // filters out all log messages that have a lower level than "error"
  107. , "appender":
  108. { Use whatever appender you want here }
  109. }*/
  110. /*
  111. , { "type": "logLevelFilter"
  112. , "level": "error" // filters out all log messages that have a lower level than "error"
  113. , "appender":
  114. { "type": "smtp"
  115. , "subject": "An error occured in your EPL instance!"
  116. , "recipients": "bar@blurdybloop.com, baz@blurdybloop.com"
  117. , "sendInterval": 60*5 // in secs -- will buffer log messages; set to 0 to send a mail for every message
  118. , "transport": "SMTP", "SMTP": { // see https://github.com/andris9/Nodemailer#possible-transport-methods
  119. "host": "smtp.example.com", "port": 465,
  120. "secureConnection": true,
  121. "auth": {
  122. "user": "foo@example.com",
  123. "pass": "bar_foo"
  124. }
  125. }
  126. }
  127. }*/
  128. ] }
  129. }