forked from ether/etherpad-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.json.template
169 lines (147 loc) · 5.57 KB
/
settings.json.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*******************************************************************************
Template for Beetherpad Settings! (Same as the real one but without passwords)
This file must be valid JSON (plus comments).
NB: Edit settings.json -- not settings.json.template
If you want you can separate out credentials and put those in credentials.json
*******************************************************************************/
{
"title": "Beetherpad", // used as the html title for the browser tab
"favicon": "favicon.ico", // can also be fully specified URL
"defaultPadText": "Voila, a new pad. Edit me!",
"suppressErrorsInPadText": false,
"requireSession": false, // true means only group pads accessible
"sessionNoPassword": false, // passwd-protected pads accessible w/ valid session
"editOnly": false, // pad creation only via API
"requireAuthentication": false, // of course /admin requires auth regardless
"requireAuthorization": false, // by a module or user with is_admin (see below)
// Toolbar buttons that are suppressed currently:
// settings, bold, italic, underline,
// orderedlist, unorderedlist, indent, outdent
"toolbar": {
"left": [
// NB: we've hardcoded a line number toggle button here
["strikethrough"],
["undo", "redo"]
],
"right": [
// NB: we've hardcoded the expost button here
["savedrevision", "timeslider"],
["embed", "importexport"],
["clearauthorship"],
["showusers"]
],
"timeslider": [
["timeslider_export", "timeslider_settings", "timeslider_returnToPad"]
]
},
"ep_brightcolorpicker": {
"brightness": 0.25, // range [0-1], default 0.25
"columns": 5 // range [1-10], default 6 columns of color swaths
},
"padOptions": { // overridable by users in settings
"noColors": false,
"showControls": true,
"showChat": false,
"showLineNumbers": true,
"useMonospaceFont": true,
"userName": true,
"userColor": true,
"rtl": false,
"alwaysShowChat": false,
"chatAndUsers": false,
"lang": "en"
},
"indentationOnNewLine": false, // Auto-indent if prev line ends w/ one of ":[({"
/******************************************************************************
* User-Visible Settings above this line *
******************************************************************************/
"ip": "127.0.0.1",
"port": 9001,
"showSettingsInAdminPage": true, // default true
"disableIPlogging": false,
// DB types: dirty, postgres, sqlite, mysql
// "dbType": "dirty", // DirtyDB is for testing/dev only!
// "dbSettings": { "filename" : "var/dirty.db" },
"dbType": "mysql",
"dbSettings" : {
"host" : "localhost",
"database": "etherpad",
"user" : "etherpad",
"password": "etherpass",
"charset" : "utf8mb4"
},
// Users for basic authentication. is_admin = true gives access to /admin.
"users": {
"admin": {
"password": "REDACTED",
"is_admin": true
},
"dreeves": {
"password": "REDACTED",
"is_admin": true
}
},
"abiword": null, // Abs path to Abiword executable; null disables Abiword
"soffice": null, // Abs path to soffice executable; null = no LibreOffice export
"tidyHtml": null, // Abs path to Tidy executable; null = no Tidy (tidier export)
// Allow import of file types other than known ones
"allowUnknownFileEnds": true, // known file ends: txt/doc/docx/rtf/odt/html/htm
// How long clients can use served javascript (in seconds).
// W/out versioning this may cause problems during deployment.
"maxAge": 21600, // 60 * 60 * 6 = 6 hours (0 disables caching)
// Node native SSL support, disabled by default.
// Make sure to have the minimum and correct file access permissions set
//"ssl": {
// "key" : "/etc/letsencrypt/live/etherpad.testprojects.net/privkey.pem",
// "cert" : "/etc/letsencrypt/live/etherpad.testprojects.net/cert.pem",
// "ca" : ["/etc/letsencrypt/live/etherpad.testprojects.net/chain.pem"]
//},
// Minify all css & js before sending to client:
"minify": true, // very important for performance but very bad for debugging
"trustProxy": false, // Whether using NginX or other proxy/load-balancer
// Restrict socket.io transport methods
"socketTransportProtocols": ["xhr-polling", "jsonp-polling", "htmlfile"],
"loadTest": false, // Allow Load Testing tools to hit server. Disables security!
"loglevel": "INFO", // Choices: DEBUG, INFO, WARN, ERROR
// log4js docs: https://github.com/nomiddlename/log4js-node
"logconfig": { "appenders": [ // Add as many appenders as you want
{ "type": "console"
//, "category": "access" // only logs pad access
}
/*,
{ "type": "file"
, "filename": "your-log-file-here.log"
, "maxLogSize": 1024
, "backups": 3 // how many log files there're gonna be at max
//, "category": "test" // only log a specific category
}
*/
/*,
{ "type": "logLevelFilter"
, "level": "warn" // filters out all log msgs w/ lower level than "error"
, "appender": { Use whatever appender you want here }
}
*/
/*,
{ "type": "logLevelFilter"
, "level": "error" // filters out all log msgs w/ lower level than "error"
, "appender":
{ "type": "smtp"
, "subject": "An error occurred in your EPL instance!"
, "recipients": "[email protected], [email protected]"
, "sendInterval": 300 // 5m; buffers log msgs; 0 = send mail for every msg
, "transport": "SMTP"
// https://github.com/andris9/Nodemailer#possible-transport-methods
, "SMTP": {
"host": "smtp.example.com", "port": 465,
"secureConnection": true,
"auth": {
"user": "[email protected]",
"pass": "bar_foo"
}
}
}
}
*/
]}
}