forked from scrollback/scrollback
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver-config-defaults.js
More file actions
141 lines (134 loc) · 2.74 KB
/
server-config-defaults.js
File metadata and controls
141 lines (134 loc) · 2.74 KB
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
/*
Scrollback: Beautiful text chat for your community.
Copyright (c) 2014 Askabt Pte. Ltd.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or any
later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see http://www.gnu.org/licenses/agpl.txt
or write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA.
*/
var merge = require("./merge-config.js");
var fs = require("fs");
var host = "local.scrollback.io";
var config = {};
var defaults = {
global: {
host: host,
su: {}
},
core: {
name: "scrollback",
newrelic: {
name: 'Scrollback Local'
}
},
appPriorities: { // don't override
antiflood: 1000,
validation: 900,
loader: 850,
sudo: 825,
appLevelValidation: 812,
authentication: 800,
authorization: 700,
antiabuse: 600,
modifier: 500,
gateway: 400,
cache: 300,
storage: 200,
watcher: 100
},
analytics: {
pg: { //post gre config
server: "localhost", //server:port
db: "logs",
username: "username",
password: "password"
//port:
},
},
"browserid-auth": {
audience: host
},
env: "production",
http: {
host: host,
cookieDomain: ".scrollback.io",
port: 80,
home: "public", // the directory containing static files
time: 60000,
limit: 30,
index: "/me" //index URL redirect
},
email: {
from: "scrollback@scrollback.io",
redisDB: 7
},
"redis-storage": {
host: "local.scrollback.io",
port: 6379,
sessionDB: 8,
userDB: 9,
roomDB: 9,
occupantsDB: 10
},
entityloader: {
nickRetries: 100
},
threader: {
host: "local.scrollback.io",
port: 12345,
redisDB: 11
},
twitter: {
//consumerKey: ".."
//consumerSecret: ".."
timeout: 1000 * 60 * 5,
silentTimeout: 1000 * 60 * 10,
redisDB: 6,
},
irc: {
port: 8910,
server: "localhost"
},
"leveldb-storage": {
path: "/data",
disableQueries: true
},
recommendation:{
redisDB: 13
},
search:{
redisDB: 14
},
sitemap: {
redisDB: 12
},
facebook: {
},
google: {
},
storage: {
pg: {
server: "localhost", //server:port
db: "scrollback",
username: "username",
password: "password"
},
redisDB: 5
}
};
config = (function() {
var changes = {};
if (fs.existsSync("./server-config.js")) {
changes = require("./server-config.js");
}
return merge(defaults, changes);
}());
module.exports = config;