etherpad: configure DB charset like docs recommend
[ansible.git] / roles / etherpad / templates / settings.json
1 /*
2   This file must be valid JSON. But comments are allowed
3
4   Please edit settings.json, not settings.json.template
5 */
6 {
7   "skinName": "colibris",
8
9   //IP and port which etherpad should bind at
10   "ip": "127.0.0.1",
11   "port" : 9001,
12
13   //The Type of the database. You can choose between dirty, postgres, sqlite and mysql
14   //You shouldn't use "dirty" for for anything else than testing or development
15    "dbType" : "mysql",
16    "dbSettings" : {
17                     "user"    : "etherpad",
18                     "host"    : "localhost",
19                     "password": "{{etherpad.mysql_password}}",
20                     "database": "etherpad",
21                     "charset" : "utf8mb4"
22                   },
23
24   //the default text of a pad
25   "defaultPadText" : "{{etherpad.default_text}}",
26
27   /* Users must have a session to access pads. This effectively allows only group pads to be accessed. */
28   "requireSession" : false,
29
30   /* 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. */
31   "editOnly" : false,
32
33   /* if true, all css & js will be minified before sending to the client. This will improve the loading performance massivly,
34      but makes it impossible to debug the javascript/css */
35   "minify" : true,
36
37   /* How long may clients use served javascript code (in seconds)? Without versioning this
38      may cause problems during deployment. Set to 0 to disable caching */
39   "maxAge" : 21600, // 60 * 60 * 6 = 6 hours
40
41   /* This is the absolute path to the Abiword executable. Setting it to null, disables abiword.
42      Abiword is needed to advanced import/export features of pads*/
43   "abiword" : null,
44
45   /* This setting is used if you require authentication of all users.
46      Note: /admin always requires authentication. */
47   "requireAuthentication" : false,
48
49   /* Require authorization by a module, or a user with is_admin set, see below. */
50   "requireAuthorization" : false,
51
52   /* Users for basic authentication. is_admin = true gives access to /admin.
53      If you do not uncomment this, /admin will not be available! */
54
55   "users": {
56     "admin": {
57       "password": "{{etherpad.admin_password}}",
58       "is_admin": true
59     }
60   },
61
62   // restrict socket.io transport methods
63   "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"],
64
65   /* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */
66   "loglevel": "WARN"
67 }