forked from Canop/miaou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-default.js
119 lines (100 loc) · 3.69 KB
/
config-default.js
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
// Rename this file to config.js and fill it to configure Miaou
// If necessary, you can build the config object dynamically
module.exports = {
server: "http://yourdomain:8204", // the URL of Miaou as seen by the browser
base: "/", // path to Miaou as seen by the browser
port: 8204, // port on which to start Miaou (might be hidden from the browser by a proxy)
// If your server is behind a proxy, the config may be different.
// Here's the example of the Miaou server on http://dystroy.org/miaou
// server: "http://dystroy.org/miaou",
// base: "/miaou/",
// port: 8204,
// If you're installing locally in order to develop,
// here's a recommended configuration:
// server: "http://127.0.0.1:8204",
// base: "/",
// port: 8204,
maxMessageContentSize: 5000, // in characters
minDelayBetweenMessages: 500, // in milliseconds
maxAgeForMessageEdition: 500, // in seconds
maxAgeForMessageTotalDeletion: 200, // in seconds
secret: "some string you should keep secret",
// bot avatar
botAvatar: {
src:"url", key:"http://dystroy.org/miaou/static/M-150.png"
// you may use another type of avatar. Examples :
// "src":"facebook", "key":"123456789"
// "src":"gravatar", "key":"some@email"
// "src":"gravatar", "key":"0a74859ec2d68811668fc44bb32b53e5"
// "src":"twitter", "key":"123456789"
},
database: {
url: "postgres://miaou:somepassword@localhost/miaou",
native_pg: false // let it to false unless you're a wizard
},
// connect-redis session store options. Leave empty to use default ones
redisStore: {
},
// list of the plugins you want to activate. You may add your ones
plugins: [
"./plugins/stackoverflow/plugin.js",
"./plugins/wikipedia/plugin.js",
"./plugins/github-identity/plugin.js",
"./plugins/scm-hooks/plugin.js",
"./plugins/video/plugin.js",
"./plugins/whiteboard/plugin.js",
"./plugins/youtube/plugin.js",
"./plugins/survey/plugin.js",
"./plugins/graph/plugin.js",
"./plugins/hashcolor/plugin.js",
"./plugins/shield/plugin.js",
],
// available themes. The first one is both the default theme and the one
// used on smartphones
themes: [
"stingy-ray",
"boring-goose",
"perverse-otter",
"sadistic-otter",
"slippery-seal",
"stoned-bear",
],
// OAuth providers. Remove or comment the ones you don't want to use
oauth2: {
"google": { // create one at https://code.google.com/apis/console/
"clientID": "your client ID",
"clientSecret": "your client secret"
},
"stackexchange": { // create one at http://stackapps.com/apps/oauth/
"clientID": "your client ID",
"clientSecret": "your client secret"
},
"github": { // create one at https://github.com/settings/applications
"clientID": "your client ID",
"clientSecret": "your client secret"
},
"reddit": {
"clientID": "your client ID",
"clientSecret": "your client secret"
}
},
// an imgur account is needed for image uploading
// Create one at https://imgur.com/account/settings/apps
imgur: {
"clientID": "your client ID"
},
// Possible room languages (ISO lang codes)
langs: ["en", "fr", "it"],
// regular expressions of the names you want to forbid
// Note that it's only verified at creation, it won't apply
// to already created names
forbiddenUsernames: ["miaou", "^server", "bot$", "^chat", "^every", "^all", "admin"],
// identifiants of the rooms that are proposed as entry point to new users
// (regular users of the server should be invited to watch those rooms)
// Don't fill this array until you created the rooms
welcomeRooms: [688, 689],
// Server admins may have access to specific server wide admin commands
// They can be specified using their id (which is constant)
// or their name (which is easier)
serverAdmins: []
}