-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.js
76 lines (66 loc) · 2.41 KB
/
config.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
module.exports = {
// Run in TEST mode (overridden by command line flags)
test: true,
// Directories used by the webserver, relative to package root.
//
// webroot: Contains static files that are served
// uploads: Staging area for user-uploaded files.
// Should not be accessible from webroot for security.
// base: Base directory for images ingested into the processing pipeline.
// derived: Output directory for filtered images.
// max_upload_size: Maximum file upload size in bytes.
// data_api: Expose a JSON data API at /data
dir_uploads: 'uploads',
dir_templates: 'templates',
dir_webroot: 'webroot',
dir_base: 'webroot/base',
dir_derived: 'webroot/derived',
max_upload_size: 1024 * 1024 * 14, // 14 MB
data_api: true,
// Serve the log stream at a particular URL, or null to disable serving
// the logs over HTTP.
logs_url: '/logz',
// Mailgun e-mail delivery settings, using an account at http://mailgun.com.
//
// mailgun_key_file: Paste your Mailgun API key into this
// file in the package root.
// domain: Emails will be sent from noreply@ this domain.
// send_emails: Should email notifications be sent?
mailgun_key_file: 'MAILGUN_KEY',
domain: 'maxstagram.com',
domain_test: 'localhost:8080',
email_from: '"Maxstagram Notification" <[email protected]>',
send_email: true,
send_email_test: false,
// MongoDB server URI to be used for indexing, logs, and queue processing.
//mongodb_server: 'mongodb://localhost/maxstagram',
//mongodb_server_test: 'mongodb://localhost/maxstagram_test',
mongodb: {
db: 'maxstagram',
host: 'localhost',
},
mongodb_test: {
db: 'maxstagram_test',
host: 'localhost',
},
// Image processing settings.
// If specified, path to ImageMagick 'convert' and 'identify' programs
// If not specified, looks in system path.
convert_path: 'bin/convert',
identify_path: 'bin/identify',
// Image dimensions. All ingested images are resized to maximum dimension
// 'largest' before being processed.
img_dims: {
largest: 2400,
large: 1280,
medium: 720,
square: 240,
},
// Number of images to derive for each image processing round.
img_derivations_per_round: 40,
img_derivations_per_round_test: 5,
// Minimum and maximum number of effects operations that
// will be blended together to generate the final image.
img_min_fx_ops: 2,
img_max_fx_ops: 12,
};