-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathconfig.js
More file actions
273 lines (183 loc) · 8.8 KB
/
config.js
File metadata and controls
273 lines (183 loc) · 8.8 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
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/* Copyright 2014 Chris Zieba <zieba.chris@gmail.com>
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 (at your option) 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/>.
*/
exports.development = {
// GENERAL
// The port that nodeJS will listen on. This will be used in your Varnish and nginx configuration.
server_port: "3000",
// The home folder for the application. Must have a trailing slash!
base_location: "/home/zieba/Projects/LP/",
// The URL that will be used by the application.
base_url: "http://logicpull.local:3000",
// If using virtual hosts, set a default/base. This used as the cookie domain to
// allow the user to stay logged in over multiple subdomains.
base_vhost: "logicpull.local",
// The server mongodb is on. If ;127.0.0.1' does not work, try 'localhost'.
mongo_host: "127.0.0.1",
// The name of the database.
mongo_db: "LogicPull",
// The server port mongodb is using
mongo_port: "27017",
// The folder location of the Apache FOP binary. Make sure there is a trailing slash!
fop_location: "/home/zieba/Documents/fop-1.1/",
// EMAIL
// this is the default email where notifications are sent. The manager allows you to set the BCC field
email_notifications_to: "info@logicpull.com",
// this is the default email where deliverables are sent. The manager allows you to set the BCC field
email_deliverables_to: "info@logicpull.com",
// The email address for the administrator of the application.
email_admin: "zieba.chris@gmail.com",
// emails sent by LogicPull (notifications, deliverables, etc.) will be from this email address
email_from: "Support <support@logicpull.com>",
// When this is enabled you must supply an auth_user and auth_password for smtp authentication
email_enable_auth: true,
// The user to authenticate when connecting to the email server
email_auth_user: "info@logicpull.com",
// The user to authenticate when connecting to the email server
email_host: "mail.server.com",
// The password to authenticate when connecting to the email server
email_auth_pass: "some_password",
// If this is set to true then this will override the setting in the
// manager to ask the client for an email that will receive the processed documents
disable_email_on_complete: false,
// this will disable any emails that get sent after an interview is completed
disable_email_notifications: false,
// This will disable any emails that get sent out when a new user is registered.
// You will have to manually activate a new user by checking the inactives database table.
disable_email_new_users: false,
// this will disable any emails with deliverables attached
disable_email_deliverables: false,
// this will disable any emails sent out when a password reset is requested
disable_email_password_reset: false,
// GRAPHVIZ
// Graphviz is used in the editor to tidy the graph,
disable_graphviz_tidy: false,
// Display a fraction of the progress through the interview (i.e 1 of 219)
disable_graphviz_progress: false,
// SOCKET
// 24h time out
socket_close_timeout: 60*60*24,
// send minified client
socket_browser_client_minification: true,
// apply etag caching logic based on version number
socket_browser_client_etag: true,
// gzip the file
socket_browser_client_gzip: true,
// reduce logging
socket_log_level: 2,
// ssl support
socket_match_origin_protocol: true,
socket_sync_disconnect_on_unload: true,
// enable all transports (optional if you want flashsocket)
socket_transports: ['websocket','xhr-polling','htmlfile','jsonp-polling','flashsocket'],
// this is the default port used for the flash socket transport.
// change if you are running multiple socket servers with flash socket transport enabled
socket_flash_policy_port: 10843,
// SESSION
// set a random sectret session code for your app
session_secret: 'dsfwer789y9hdfghj32423',
// COOKIE
// By default the cookie is transmitted over any page
cookie_path: "/",
// Directs browsers not to expose cookies through channels other than HTTP and HTTPS
http_only: true,
// Set the cookie expiration date
cookie_max_age: 1000*60*60*24*30*12,
// Set to true to make sure the cookie is transmitted over HTTPS
cookie_secure: false
};
exports.production = {
// GENERAL
// The port that nodeJS will listen on. This will be used in your Varnish and nginx configuration.
server_port: "3000",
// The home folder for the application. Must have a trailing slash!
base_location: "/srv/www/LogicPull/",
// The URL that will be used by the application.
base_url: "http://www.yoursite.com",
// If using virtual hosts, set a default/base. This used as the cookie domain to
// allow the user to stay logged in over multiple subdomains.
base_vhost: "yoursite.com",
// The server mongodb is on. If ;127.0.0.1' does not work, try 'localhost'.
mongo_host: "127.0.0.1",
// The name of the database.
mongo_db: "LogicPull",
// The server port mongodb is using
mongo_port: "27017",
// The folder location of the Apache FOP binary. Make sure there is a trailing slash!
fop_location: "/opt/fop-1.1/",
// EMAIL
// this is the default email where notifications are sent. The manager allows you to set the BCC field
// e.g. info@comcast.com
email_notifications_to: "",
// this is the default email where deliverables are sent. The manager allows you to set the BCC field
// e.g. info@comcast.com
email_deliverables_to: "",
// The email address for the administrator of the application, e.g. info@comcast.com
email_admin: "",
// emails sent by LogicPull (notifications, deliverables, etc.) will be from this email address
// e.g. Support <support@comcast.com>
email_from: "",
// When this is enabled you must supply an auth_user and auth_password for smtp authentication
email_enable_auth: true,
// The user to authenticate when connecting to the email server, e.g. info@comcast.com
email_auth_user: "",
// The user to authenticate when connecting to the email server, e.g. mail.comcast.com
email_host: "",
// The password to authenticate when connecting to the email server
email_auth_pass: "",
// If this is set to true then this will override the setting in the
// manager to ask the client for an email that will receive the processed documents
disable_email_on_complete: false,
// this will disable any emails that get sent after an interview is completed
disable_email_notifications: false,
// This will disable any emails that get sent out when a new user is registered.
// You will have to manually activate a new user by checking the inactives database table.
disable_email_new_users: false,
// this will disable any emails with deliverables attached
disable_email_deliverables: false,
// this will disable any emails sent out when a password reset is requested
disable_email_password_reset: false,
// GRAPHVIZ
// Graphviz is used in the editor to tidy the graph,
disable_graphviz_tidy: false,
// Display a fraction of the progress through the interview (i.e 1 of 219)
disable_graphviz_progress: false,
// SOCKET
// 24h time out
socket_close_timeout: 60*60*24,
// send minified client
socket_browser_client_minification: true,
// apply etag caching logic based on version number
socket_browser_client_etag: true,
// gzip the file
socket_browser_client_gzip: true,
// reduce logging
socket_log_level: 2,
// ssl support
socket_match_origin_protocol: true,
socket_sync_disconnect_on_unload: true,
// enable all transports (optional if you want flashsocket)
socket_transports: ['websocket','xhr-polling','htmlfile','jsonp-polling','flashsocket'],
// this is the default port used for the flash socket transport.
// change if you are running multiple socket servers with flash socket transport enabled
socket_flash_policy_port: 10843,
// SESSION
// set a random sectret session code for your app
session_secret: 'dsfwer789y9hdfghj32423',
// COOKIE
// By default the cookie is transmitted over any page
cookie_path: "/",
// Directs browsers not to expose cookies through channels other than HTTP and HTTPS
http_only: true,
// Set the cookie expiration date
cookie_max_age: 1000*60*60*24*30*12,
// Set to true to make sure the cookie is transmitted over HTTPS
cookie_secure: false
};