Playbooks to a new Lilik
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.

590 lines
17 KiB

  1. /*
  2. * This file must be valid JSON. But comments are allowed
  3. *
  4. * Please edit settings.json, not settings.json.template
  5. *
  6. * Please note that starting from Etherpad 1.6.0 you can store DB credentials in
  7. * a separate file (credentials.json).
  8. *
  9. *
  10. * ENVIRONMENT VARIABLE SUBSTITUTION
  11. * =================================
  12. *
  13. * All the configuration values can be read from environment variables using the
  14. * syntax "${ENV_VAR}" or "${ENV_VAR:default_value}".
  15. *
  16. * This is useful, for example, when running in a Docker container.
  17. *
  18. * EXAMPLE:
  19. * "port": "${PORT:9001}"
  20. * "minify": "${MINIFY}"
  21. * "skinName": "${SKIN_NAME:colibris}"
  22. *
  23. * Would read the configuration values for those items from the environment
  24. * variables PORT, MINIFY and SKIN_NAME.
  25. *
  26. * If PORT and SKIN_NAME variables were not defined, the default values 9001 and
  27. * "colibris" would be used.
  28. * The configuration value "minify", on the other hand, does not have a
  29. * designated default value. Thus, if the environment variable MINIFY were
  30. * undefined, "minify" would be null.
  31. *
  32. * REMARKS:
  33. * 1) please note that variable substitution always needs to be quoted.
  34. *
  35. * "port": 9001, <-- Literal values. When not using
  36. * "minify": false substitution, only strings must be
  37. * "skinName": "colibris" quoted. Booleans and numbers must not.
  38. *
  39. * "port": "${PORT:9001}" <-- CORRECT: if you want to use a variable
  40. * "minify": "${MINIFY:true}" substitution, put quotes around its name,
  41. * "skinName": "${SKIN_NAME}" even if the required value is a number or
  42. * a boolean.
  43. * Etherpad will take care of rewriting it
  44. * to the proper type if necessary.
  45. *
  46. * "port": ${PORT:9001} <-- ERROR: this is not valid json. Quotes
  47. * "minify": ${MINIFY} around variable names are missing.
  48. * "skinName": ${SKIN_NAME}
  49. *
  50. * 2) Beware of undefined variables and default values: nulls and empty strings
  51. * are different!
  52. *
  53. * This is particularly important for user's passwords (see the relevant
  54. * section):
  55. *
  56. * "password": "${PASSW}" // if PASSW is not defined would result in password === null
  57. * "password": "${PASSW:}" // if PASSW is not defined would result in password === ''
  58. *
  59. * If you want to use an empty value (null) as default value for a variable,
  60. * simply do not set it, without putting any colons: "${ABIWORD}".
  61. *
  62. * 3) if you want to use newlines in the default value of a string parameter,
  63. * use "\n" as usual.
  64. *
  65. * "defaultPadText" : "${DEFAULT_PAD_TEXT}Line 1\nLine 2"
  66. */
  67. {
  68. /*
  69. * Name your instance!
  70. */
  71. "title": "{{ organization }} Etherpad",
  72. /*
  73. * favicon default name
  74. * alternatively, set up a fully specified Url to your own favicon
  75. */
  76. "favicon": "favicon.ico",
  77. /*
  78. * Skin name.
  79. *
  80. * Its value has to be an existing directory under src/static/skins.
  81. * You can write your own, or use one of the included ones:
  82. *
  83. * - "no-skin": an empty skin (default). This yields the unmodified,
  84. * traditional Etherpad theme.
  85. * - "colibris": the new experimental skin (since Etherpad 1.8), candidate to
  86. * become the default in Etherpad 2.0
  87. */
  88. "skinName": "colibris",
  89. /*
  90. * Skin Variants
  91. *
  92. * Use the UI skin variants builder at /p/test#skinvariantsbuilder
  93. *
  94. * For the colibris skin only, you can choose how to render the three main
  95. * containers:
  96. * - toolbar (top menu with icons)
  97. * - editor (containing the text of the pad)
  98. * - background (area outside of editor, mostly visible when using page style)
  99. *
  100. * For each of the 3 containers you can choose 4 color combinations:
  101. * super-light, light, dark, super-dark.
  102. *
  103. * For example, to make the toolbar dark, you will include "dark-toolbar" into
  104. * skinVariants.
  105. *
  106. * You can provide multiple skin variants separated by spaces. Default
  107. * skinVariant is "super-light-toolbar super-light-editor light-background".
  108. *
  109. * For the editor container, you can also make it full width by adding
  110. * "full-width-editor" variant (by default editor is rendered as a page, with
  111. * a max-width of 900px).
  112. */
  113. "skinVariants": "super-light-toolbar super-light-editor light-background",
  114. /*
  115. * IP and port which Etherpad should bind at.
  116. *
  117. * Binding to a Unix socket is also supported: just use an empty string for
  118. * the ip, and put the full path to the socket in the port parameter.
  119. *
  120. * EXAMPLE USING UNIX SOCKET:
  121. * "ip": "", // <-- has to be an empty string
  122. * "port" : "/somepath/etherpad.socket", // <-- path to a Unix socket
  123. */
  124. "ip": "127.0.0.1",
  125. "port": 9001,
  126. /*
  127. * Option to hide/show the settings.json in admin page.
  128. *
  129. * Default option is set to true
  130. */
  131. "showSettingsInAdminPage": true,
  132. /*
  133. * Node native SSL support
  134. *
  135. * This is disabled by default.
  136. * Make sure to have the minimum and correct file access permissions set so
  137. * that the Etherpad server can access them
  138. */
  139. /*
  140. "ssl" : {
  141. "key" : "/path-to-your/epl-server.key",
  142. "cert" : "/path-to-your/epl-server.crt",
  143. "ca": ["/path-to-your/epl-intermediate-cert1.crt", "/path-to-your/epl-intermediate-cert2.crt"]
  144. },
  145. */
  146. /*
  147. * The type of the database.
  148. *
  149. * You can choose between many DB drivers, for example: dirty, postgres,
  150. * sqlite, mysql.
  151. *
  152. * You shouldn't use "dirty" for for anything else than testing or
  153. * development.
  154. *
  155. *
  156. * Database specific settings are dependent on dbType, and go in dbSettings.
  157. * Remember that since Etherpad 1.6.0 you can also store these informations in
  158. * credentials.json.
  159. *
  160. * For a complete list of the supported drivers, please refer to:
  161. * https://www.npmjs.com/package/ueberdb2
  162. */
  163. "dbType" : "postgres",
  164. "dbSettings" : {
  165. "user": "etherpad",
  166. "host": "/var/run/postgresql",
  167. "password": " ",
  168. "database": "etherpad",
  169. "charset": "utf8mb4"
  170. },
  171. /*
  172. "dbType": "dirty",
  173. "dbSettings": {
  174. "filename": "var/dirty.db"
  175. },
  176. */
  177. /*
  178. * An Example of MySQL Configuration (commented out).
  179. *
  180. * See: https://github.com/ether/etherpad-lite/wiki/How-to-use-Etherpad-Lite-with-MySQL
  181. */
  182. /*
  183. "dbType" : "mysql",
  184. "dbSettings" : {
  185. "user": "etherpaduser",
  186. "host": "localhost",
  187. "port": 3306,
  188. "password": "PASSWORD",
  189. "database": "etherpad_lite_db",
  190. "charset": "utf8mb4"
  191. },
  192. */
  193. /*
  194. * The default text of a pad
  195. */
  196. "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 https:\/\/etherpad.org\n",
  197. /*
  198. * Default Pad behavior.
  199. *
  200. * Change them if you want to override.
  201. */
  202. "padOptions": {
  203. "noColors": false,
  204. "showControls": true,
  205. "showChat": true,
  206. "showLineNumbers": true,
  207. "useMonospaceFont": false,
  208. "userName": false,
  209. "userColor": false,
  210. "rtl": false,
  211. "alwaysShowChat": false,
  212. "chatAndUsers": false,
  213. "lang": "en-gb"
  214. },
  215. /*
  216. * Pad Shortcut Keys
  217. */
  218. "padShortcutEnabled" : {
  219. "altF9": true, /* focus on the File Menu and/or editbar */
  220. "altC": true, /* focus on the Chat window */
  221. "cmdShift2": true, /* shows a gritter popup showing a line author */
  222. "delete": true,
  223. "return": true,
  224. "esc": true, /* in mozilla versions 14-19 avoid reconnecting pad */
  225. "cmdS": true, /* save a revision */
  226. "tab": true, /* indent */
  227. "cmdZ": true, /* undo/redo */
  228. "cmdY": true, /* redo */
  229. "cmdI": true, /* italic */
  230. "cmdB": true, /* bold */
  231. "cmdU": true, /* underline */
  232. "cmd5": true, /* strike through */
  233. "cmdShiftL": true, /* unordered list */
  234. "cmdShiftN": true, /* ordered list */
  235. "cmdShift1": true, /* ordered list */
  236. "cmdShiftC": true, /* clear authorship */
  237. "cmdH": true, /* backspace */
  238. "ctrlHome": true, /* scroll to top of pad */
  239. "pageUp": true,
  240. "pageDown": true
  241. },
  242. /*
  243. * Should we suppress errors from being visible in the default Pad Text?
  244. */
  245. "suppressErrorsInPadText": false,
  246. /*
  247. * If this option is enabled, a user must have a session to access pads.
  248. * This effectively allows only group pads to be accessed.
  249. */
  250. "requireSession": false,
  251. /*
  252. * Users may edit pads but not create new ones.
  253. *
  254. * Pad creation is only via the API.
  255. * This applies both to group pads and regular pads.
  256. */
  257. "editOnly": false,
  258. /*
  259. * If set to true, those users who have a valid session will automatically be
  260. * granted access to password protected pads.
  261. */
  262. "sessionNoPassword": false,
  263. /*
  264. * If true, all css & js will be minified before sending to the client.
  265. *
  266. * This will improve the loading performance massively, but makes it difficult
  267. * to debug the javascript/css
  268. */
  269. "minify": true,
  270. /*
  271. * How long may clients use served javascript code (in seconds)?
  272. *
  273. * Not setting this may cause problems during deployment.
  274. * Set to 0 to disable caching.
  275. */
  276. "maxAge": 21600, // 60 * 60 * 6 = 6 hours
  277. /*
  278. * Absolute path to the Abiword executable.
  279. *
  280. * Abiword is needed to get advanced import/export features of pads. Setting
  281. * it to null disables Abiword and will only allow plain text and HTML
  282. * import/exports.
  283. */
  284. "abiword": null,
  285. /*
  286. * This is the absolute path to the soffice executable.
  287. *
  288. * LibreOffice can be used in lieu of Abiword to export pads.
  289. * Setting it to null disables LibreOffice exporting.
  290. */
  291. "soffice": null,
  292. /*
  293. * Path to the Tidy executable.
  294. *
  295. * Tidy is used to improve the quality of exported pads.
  296. * Setting it to null disables Tidy.
  297. */
  298. "tidyHtml": null,
  299. /*
  300. * Allow import of file types other than the supported ones:
  301. * txt, doc, docx, rtf, odt, html & htm
  302. */
  303. "allowUnknownFileEnds": true,
  304. /*
  305. * This setting is used if you require authentication of all users.
  306. *
  307. * Note: "/admin" always requires authentication.
  308. */
  309. "requireAuthentication": false,
  310. /*
  311. * Require authorization by a module, or a user with is_admin set, see below.
  312. */
  313. "requireAuthorization": false,
  314. /*
  315. * When you use NGINX or another proxy/load-balancer set this to true.
  316. *
  317. * This is especially necessary when the reverse proxy performs SSL
  318. * termination, otherwise the cookies will not have the "secure" flag.
  319. *
  320. * The other effect will be that the logs will contain the real client's IP,
  321. * instead of the reverse proxy's IP.
  322. */
  323. "trustProxy": "127.0.0.1",
  324. /*
  325. * Privacy: disable IP logging
  326. */
  327. "disableIPlogging": false,
  328. /*
  329. * Time (in seconds) to automatically reconnect pad when a "Force reconnect"
  330. * message is shown to user.
  331. *
  332. * Set to 0 to disable automatic reconnection.
  333. */
  334. "automaticReconnectionTimeout": 0,
  335. /*
  336. * By default, when caret is moved out of viewport, it scrolls the minimum
  337. * height needed to make this line visible.
  338. */
  339. "scrollWhenFocusLineIsOutOfViewport": {
  340. /*
  341. * Percentage of viewport height to be additionally scrolled.
  342. *
  343. * E.g.: use "percentage.editionAboveViewport": 0.5, to place caret line in
  344. * the middle of viewport, when user edits a line above of the
  345. * viewport
  346. *
  347. * Set to 0 to disable extra scrolling
  348. */
  349. "percentage": {
  350. "editionAboveViewport": 0,
  351. "editionBelowViewport": 0
  352. },
  353. /*
  354. * Time (in milliseconds) used to animate the scroll transition.
  355. * Set to 0 to disable animation
  356. */
  357. "duration": 0,
  358. /*
  359. * Flag to control if it should scroll when user places the caret in the
  360. * last line of the viewport
  361. */
  362. "scrollWhenCaretIsInTheLastLineOfViewport": false,
  363. /*
  364. * Percentage of viewport height to be additionally scrolled when user
  365. * presses arrow up in the line of the top of the viewport.
  366. *
  367. * Set to 0 to let the scroll to be handled as default by Etherpad
  368. */
  369. "percentageToScrollWhenUserPressesArrowUp": 0
  370. },
  371. /*
  372. * Users for basic authentication.
  373. *
  374. * is_admin = true gives access to /admin.
  375. * If you do not uncomment this, /admin will not be available!
  376. *
  377. * WARNING: passwords should not be stored in plaintext in this file.
  378. * If you want to mitigate this, please install ep_hash_auth and
  379. * follow the section "secure your installation" in README.md
  380. */
  381. "users": {
  382. "ldapauth": {
  383. "url": "ldaps://{{ ldap_server }}",
  384. "accountBase": "ou=People,{{ ldap_basedn }}",
  385. "accountPattern": "(&(objectClass=*)(cn={{ '{{username}}' }}))",
  386. "displayNameAttribute": "sn",
  387. "searchDN": "cn={{ host_fqdn }},ou=Server,{{ ldap_basedn }}",
  388. "searchPWD": "{{ etherpad_ldap_passwd.passwd }}",
  389. "groupSearchBase": "ou=Group,{{ ldap_basedn }}",
  390. "groupAttribute": "member",
  391. "groupAttributeIsDN": true,
  392. "searchScope": "sub",
  393. "groupSearch": "(&(cn=admin)(objectClass=groupOfNames))",
  394. "anonymousReadonly": false,
  395. "tls_ca_file": "/etc/ldap/server_ca.crt",
  396. "password": "dummy_password"
  397. }
  398. },
  399. /*
  400. "users": {
  401. "admin": {
  402. // 1) "password" can be replaced with "hash" if you install ep_hash_auth
  403. // 2) please note that if password is null, the user will not be created
  404. "password": "changeme1",
  405. "is_admin": true
  406. },
  407. "user": {
  408. // 1) "password" can be replaced with "hash" if you install ep_hash_auth
  409. // 2) please note that if password is null, the user will not be created
  410. "password": "changeme1",
  411. "is_admin": false
  412. }
  413. },
  414. */
  415. /*
  416. * Restrict socket.io transport methods
  417. */
  418. "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"],
  419. /*
  420. * Allow Load Testing tools to hit the Etherpad Instance.
  421. *
  422. * WARNING: this will disable security on the instance.
  423. */
  424. "loadTest": false,
  425. /*
  426. * Disable indentation on new line when previous line ends with some special
  427. * chars (':', '[', '(', '{')
  428. */
  429. /*
  430. "indentationOnNewLine": false,
  431. */
  432. /*
  433. * From Etherpad 1.8.3 onwards, import and export of pads is always rate
  434. * limited.
  435. *
  436. * The default is to allow at most 10 requests per IP in a 90 seconds window.
  437. * After that the import/export request is rejected.
  438. *
  439. * See https://github.com/nfriedly/express-rate-limit for more options
  440. */
  441. "importExportRateLimiting": {
  442. // duration of the rate limit window (milliseconds)
  443. "windowMs": 90000,
  444. // maximum number of requests per IP to allow during the rate limit window
  445. "max": 10
  446. },
  447. /*
  448. * From Etherpad 1.8.3 onwards, the maximum allowed size for a single imported
  449. * file is always bounded.
  450. *
  451. * File size is specified in bytes. Default is 50 MB.
  452. */
  453. "importMaxFileSize": 52428800, // 50 * 1024 * 1024
  454. /*
  455. * Toolbar buttons configuration.
  456. *
  457. * Uncomment to customize.
  458. */
  459. /*
  460. "toolbar": {
  461. "left": [
  462. ["bold", "italic", "underline", "strikethrough"],
  463. ["orderedlist", "unorderedlist", "indent", "outdent"],
  464. ["undo", "redo"],
  465. ["clearauthorship"]
  466. ],
  467. "right": [
  468. ["importexport", "timeslider", "savedrevision"],
  469. ["settings", "embed"],
  470. ["showusers"]
  471. ],
  472. "timeslider": [
  473. ["timeslider_export", "timeslider_returnToPad"]
  474. ]
  475. },
  476. */
  477. /*
  478. * Expose Etherpad version in the web interface and in the Server http header.
  479. *
  480. * Do not enable on production machines.
  481. */
  482. "exposeVersion": false,
  483. /*
  484. * The log level we are using.
  485. *
  486. * Valid values: DEBUG, INFO, WARN, ERROR
  487. */
  488. "loglevel": "INFO",
  489. /*
  490. * Logging configuration. See log4js documentation for further information:
  491. * https://github.com/nomiddlename/log4js-node
  492. *
  493. * You can add as many appenders as you want here.
  494. */
  495. "logconfig" :
  496. { "appenders": [
  497. { "type": "console"
  498. //, "category": "access"// only logs pad access
  499. }
  500. /*
  501. , { "type": "file"
  502. , "filename": "your-log-file-here.log"
  503. , "maxLogSize": 1024
  504. , "backups": 3 // how many log files there're gonna be at max
  505. //, "category": "test" // only log a specific category
  506. }
  507. */
  508. /*
  509. , { "type": "logLevelFilter"
  510. , "level": "warn" // filters out all log messages that have a lower level than "error"
  511. , "appender":
  512. { Use whatever appender you want here }
  513. }
  514. */
  515. /*
  516. , { "type": "logLevelFilter"
  517. , "level": "error" // filters out all log messages that have a lower level than "error"
  518. , "appender":
  519. { "type": "smtp"
  520. , "subject": "An error occurred in your EPL instance!"
  521. , "recipients": "bar@blurdybloop.com, baz@blurdybloop.com"
  522. , "sendInterval": 300 // 60 * 5 = 5 minutes -- will buffer log messages; set to 0 to send a mail for every message
  523. , "transport": "SMTP", "SMTP": { // see https://github.com/andris9/Nodemailer#possible-transport-methods
  524. "host": "smtp.example.com", "port": 465,
  525. "secureConnection": true,
  526. "auth": {
  527. "user": "foo@example.com",
  528. "pass": "bar_foo"
  529. }
  530. }
  531. }
  532. }
  533. */
  534. ]
  535. } // logconfig
  536. }