Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

604 rindas
18 KiB

pirms 3 gadiem
  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": "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": "0.0.0.0",
  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": "dirty",
  164. "dbSettings": {
  165. "filename": "var/dirty.db"
  166. },
  167. /*
  168. * An Example of MySQL Configuration (commented out).
  169. *
  170. * See: https://github.com/ether/etherpad-lite/wiki/How-to-use-Etherpad-Lite-with-MySQL
  171. */
  172. /*
  173. "dbType" : "mysql",
  174. "dbSettings" : {
  175. "user": "etherpaduser",
  176. "host": "localhost",
  177. "port": 3306,
  178. "password": "PASSWORD",
  179. "database": "etherpad_lite_db",
  180. "charset": "utf8mb4"
  181. },
  182. */
  183. /*
  184. * The default text of a pad
  185. */
  186. "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",
  187. /*
  188. * Default Pad behavior.
  189. *
  190. * Change them if you want to override.
  191. */
  192. "padOptions": {
  193. "noColors": false,
  194. "showControls": true,
  195. "showChat": true,
  196. "showLineNumbers": true,
  197. "useMonospaceFont": false,
  198. "userName": false,
  199. "userColor": false,
  200. "rtl": false,
  201. "alwaysShowChat": false,
  202. "chatAndUsers": false,
  203. "lang": "en-gb"
  204. },
  205. /*
  206. * Pad Shortcut Keys
  207. */
  208. "padShortcutEnabled" : {
  209. "altF9": true, /* focus on the File Menu and/or editbar */
  210. "altC": true, /* focus on the Chat window */
  211. "cmdShift2": true, /* shows a gritter popup showing a line author */
  212. "delete": true,
  213. "return": true,
  214. "esc": true, /* in mozilla versions 14-19 avoid reconnecting pad */
  215. "cmdS": true, /* save a revision */
  216. "tab": true, /* indent */
  217. "cmdZ": true, /* undo/redo */
  218. "cmdY": true, /* redo */
  219. "cmdI": true, /* italic */
  220. "cmdB": true, /* bold */
  221. "cmdU": true, /* underline */
  222. "cmd5": true, /* strike through */
  223. "cmdShiftL": true, /* unordered list */
  224. "cmdShiftN": true, /* ordered list */
  225. "cmdShift1": true, /* ordered list */
  226. "cmdShiftC": true, /* clear authorship */
  227. "cmdH": true, /* backspace */
  228. "ctrlHome": true, /* scroll to top of pad */
  229. "pageUp": true,
  230. "pageDown": true
  231. },
  232. /*
  233. * Should we suppress errors from being visible in the default Pad Text?
  234. */
  235. "suppressErrorsInPadText": false,
  236. /*
  237. * If this option is enabled, a user must have a session to access pads.
  238. * This effectively allows only group pads to be accessed.
  239. */
  240. "requireSession": false,
  241. /*
  242. * Users may edit pads but not create new ones.
  243. *
  244. * Pad creation is only via the API.
  245. * This applies both to group pads and regular pads.
  246. */
  247. "editOnly": false,
  248. /*
  249. * If true, all css & js will be minified before sending to the client.
  250. *
  251. * This will improve the loading performance massively, but makes it difficult
  252. * to debug the javascript/css
  253. */
  254. "minify": true,
  255. /*
  256. * How long may clients use served javascript code (in seconds)?
  257. *
  258. * Not setting this may cause problems during deployment.
  259. * Set to 0 to disable caching.
  260. */
  261. "maxAge": 21600, // 60 * 60 * 6 = 6 hours
  262. /*
  263. * Absolute path to the Abiword executable.
  264. *
  265. * Abiword is needed to get advanced import/export features of pads. Setting
  266. * it to null disables Abiword and will only allow plain text and HTML
  267. * import/exports.
  268. */
  269. "abiword": null,
  270. /*
  271. * This is the absolute path to the soffice executable.
  272. *
  273. * LibreOffice can be used in lieu of Abiword to export pads.
  274. * Setting it to null disables LibreOffice exporting.
  275. */
  276. "soffice": null,
  277. /*
  278. * Path to the Tidy executable.
  279. *
  280. * Tidy is used to improve the quality of exported pads.
  281. * Setting it to null disables Tidy.
  282. */
  283. "tidyHtml": null,
  284. /*
  285. * Allow import of file types other than the supported ones:
  286. * txt, doc, docx, rtf, odt, html & htm
  287. */
  288. "allowUnknownFileEnds": true,
  289. /*
  290. * This setting is used if you require authentication of all users.
  291. *
  292. * Note: "/admin" always requires authentication.
  293. */
  294. "requireAuthentication": false,
  295. /*
  296. * Require authorization by a module, or a user with is_admin set, see below.
  297. */
  298. "requireAuthorization": false,
  299. /*
  300. * When you use NGINX or another proxy/load-balancer set this to true.
  301. *
  302. * This is especially necessary when the reverse proxy performs SSL
  303. * termination, otherwise the cookies will not have the "secure" flag.
  304. *
  305. * The other effect will be that the logs will contain the real client's IP,
  306. * instead of the reverse proxy's IP.
  307. */
  308. "trustProxy": false,
  309. /*
  310. * Settings controlling the session cookie issued by Etherpad.
  311. */
  312. "cookie": {
  313. /*
  314. * Value of the SameSite cookie property. "Lax" is recommended unless
  315. * Etherpad will be embedded in an iframe from another site, in which case
  316. * this must be set to "None". Note: "None" will not work (the browser will
  317. * not send the cookie to Etherpad) unless https is used to access Etherpad
  318. * (either directly or via a reverse proxy with "trustProxy" set to true).
  319. *
  320. * "Strict" is not recommended because it has few security benefits but
  321. * significant usability drawbacks vs. "Lax". See
  322. * https://stackoverflow.com/q/41841880 for discussion.
  323. */
  324. "sameSite": "Lax"
  325. },
  326. /*
  327. * Privacy: disable IP logging
  328. */
  329. "disableIPlogging": false,
  330. /*
  331. * Time (in seconds) to automatically reconnect pad when a "Force reconnect"
  332. * message is shown to user.
  333. *
  334. * Set to 0 to disable automatic reconnection.
  335. */
  336. "automaticReconnectionTimeout": 0,
  337. /*
  338. * By default, when caret is moved out of viewport, it scrolls the minimum
  339. * height needed to make this line visible.
  340. */
  341. "scrollWhenFocusLineIsOutOfViewport": {
  342. /*
  343. * Percentage of viewport height to be additionally scrolled.
  344. *
  345. * E.g.: use "percentage.editionAboveViewport": 0.5, to place caret line in
  346. * the middle of viewport, when user edits a line above of the
  347. * viewport
  348. *
  349. * Set to 0 to disable extra scrolling
  350. */
  351. "percentage": {
  352. "editionAboveViewport": 0,
  353. "editionBelowViewport": 0
  354. },
  355. /*
  356. * Time (in milliseconds) used to animate the scroll transition.
  357. * Set to 0 to disable animation
  358. */
  359. "duration": 0,
  360. /*
  361. * Flag to control if it should scroll when user places the caret in the
  362. * last line of the viewport
  363. */
  364. "scrollWhenCaretIsInTheLastLineOfViewport": false,
  365. /*
  366. * Percentage of viewport height to be additionally scrolled when user
  367. * presses arrow up in the line of the top of the viewport.
  368. *
  369. * Set to 0 to let the scroll to be handled as default by Etherpad
  370. */
  371. "percentageToScrollWhenUserPressesArrowUp": 0
  372. },
  373. /*
  374. * User accounts. These accounts are used by:
  375. * - default HTTP basic authentication if no plugin handles authentication
  376. * - some but not all authentication plugins
  377. * - some but not all authorization plugins
  378. *
  379. * User properties:
  380. * - password: The user's password. Some authentication plugins will ignore
  381. * this.
  382. * - is_admin: true gives access to /admin. Defaults to false. If you do not
  383. * uncomment this, /admin will not be available!
  384. * - readOnly: If true, this user will not be able to create new pads or
  385. * modify existing pads. Defaults to false.
  386. * - canCreate: If this is true and readOnly is false, this user can create
  387. * new pads. Defaults to true.
  388. *
  389. * Authentication and authorization plugins may define additional properties.
  390. *
  391. * WARNING: passwords should not be stored in plaintext in this file.
  392. * If you want to mitigate this, please install ep_hash_auth and
  393. * follow the section "secure your installation" in README.md
  394. */
  395. /*
  396. "users": {
  397. "admin": {
  398. // 1) "password" can be replaced with "hash" if you install ep_hash_auth
  399. // 2) please note that if password is null, the user will not be created
  400. "password": "changeme1",
  401. "is_admin": true
  402. },
  403. "user": {
  404. // 1) "password" can be replaced with "hash" if you install ep_hash_auth
  405. // 2) please note that if password is null, the user will not be created
  406. "password": "changeme1",
  407. "is_admin": false
  408. }
  409. },
  410. */
  411. /*
  412. * Restrict socket.io transport methods
  413. */
  414. "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"],
  415. /*
  416. * Allow Load Testing tools to hit the Etherpad Instance.
  417. *
  418. * WARNING: this will disable security on the instance.
  419. */
  420. "loadTest": false,
  421. /*
  422. * Disable indentation on new line when previous line ends with some special
  423. * chars (':', '[', '(', '{')
  424. */
  425. /*
  426. "indentationOnNewLine": false,
  427. */
  428. /*
  429. * From Etherpad 1.8.3 onwards, import and export of pads is always rate
  430. * limited.
  431. *
  432. * The default is to allow at most 10 requests per IP in a 90 seconds window.
  433. * After that the import/export request is rejected.
  434. *
  435. * See https://github.com/nfriedly/express-rate-limit for more options
  436. */
  437. "importExportRateLimiting": {
  438. // duration of the rate limit window (milliseconds)
  439. "windowMs": 90000,
  440. // maximum number of requests per IP to allow during the rate limit window
  441. "max": 10
  442. },
  443. /*
  444. * From Etherpad 1.8.3 onwards, the maximum allowed size for a single imported
  445. * file is always bounded.
  446. *
  447. * File size is specified in bytes. Default is 50 MB.
  448. */
  449. "importMaxFileSize": 52428800, // 50 * 1024 * 1024
  450. /*
  451. * From Etherpad 1.9.0 onwards, when Etherpad is in production mode commits from individual users are rate limited
  452. *
  453. * The default is to allow at most 10 changes per IP in a 1 second window.
  454. * After that the change is rejected.
  455. *
  456. * See https://github.com/animir/node-rate-limiter-flexible/wiki/Overall-example#websocket-single-connection-prevent-flooding for more options
  457. */
  458. "commitRateLimiting": {
  459. // duration of the rate limit window (seconds)
  460. "duration": 1,
  461. // maximum number of chanes per IP to allow during the rate limit window
  462. "points": 10
  463. },
  464. /*
  465. * Toolbar buttons configuration.
  466. *
  467. * Uncomment to customize.
  468. */
  469. /*
  470. "toolbar": {
  471. "left": [
  472. ["bold", "italic", "underline", "strikethrough"],
  473. ["orderedlist", "unorderedlist", "indent", "outdent"],
  474. ["undo", "redo"],
  475. ["clearauthorship"]
  476. ],
  477. "right": [
  478. ["importexport", "timeslider", "savedrevision"],
  479. ["settings", "embed"],
  480. ["showusers"]
  481. ],
  482. "timeslider": [
  483. ["timeslider_export", "timeslider_returnToPad"]
  484. ]
  485. },
  486. */
  487. /*
  488. * Expose Etherpad version in the web interface and in the Server http header.
  489. *
  490. * Do not enable on production machines.
  491. */
  492. "exposeVersion": false,
  493. /*
  494. * The log level we are using.
  495. *
  496. * Valid values: DEBUG, INFO, WARN, ERROR
  497. */
  498. "loglevel": "INFO",
  499. /*
  500. * Logging configuration. See log4js documentation for further information:
  501. * https://github.com/nomiddlename/log4js-node
  502. *
  503. * You can add as many appenders as you want here.
  504. */
  505. "logconfig" :
  506. { "appenders": [
  507. { "type": "console"
  508. //, "category": "access"// only logs pad access
  509. }
  510. /*
  511. , { "type": "file"
  512. , "filename": "your-log-file-here.log"
  513. , "maxLogSize": 1024
  514. , "backups": 3 // how many log files there're gonna be at max
  515. //, "category": "test" // only log a specific category
  516. }
  517. */
  518. /*
  519. , { "type": "logLevelFilter"
  520. , "level": "warn" // filters out all log messages that have a lower level than "error"
  521. , "appender":
  522. { Use whatever appender you want here }
  523. }
  524. */
  525. /*
  526. , { "type": "logLevelFilter"
  527. , "level": "error" // filters out all log messages that have a lower level than "error"
  528. , "appender":
  529. { "type": "smtp"
  530. , "subject": "An error occurred in your EPL instance!"
  531. , "recipients": "bar@blurdybloop.com, baz@blurdybloop.com"
  532. , "sendInterval": 300 // 60 * 5 = 5 minutes -- will buffer log messages; set to 0 to send a mail for every message
  533. , "transport": "SMTP", "SMTP": { // see https://github.com/andris9/Nodemailer#possible-transport-methods
  534. "host": "smtp.example.com", "port": 465,
  535. "secureConnection": true,
  536. "auth": {
  537. "user": "foo@example.com",
  538. "pass": "bar_foo"
  539. }
  540. }
  541. }
  542. }
  543. */
  544. ]
  545. }, // logconfig
  546. /* Override any strings found in locale directories */
  547. "customLocaleStrings": {}
  548. }