This repository has been archived by the owner on Jan 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathdefault-config.js
87 lines (83 loc) · 2.08 KB
/
default-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
77
78
79
80
81
82
83
84
85
86
87
// This is the default configuration for the Popcorn Maker server
// You shouldn't edit this file. Instead, look at the README for
// various configuration options
module.exports = {
// hostname must match the address in your browser's URL bar
// If it does not, then Persona sign-in will not work
// Don't add any trailing slashes, just protocol://hostname[:port]
"hostname": "http://localhost:8888",
// PORT is the port that the server will bind to
// PORT is all caps because all the PaaS providers do it this way
"PORT": 8888,
// NODE_ENV is the environment you're running the server in
// It determines whether to apply optimizations or not
// Any string is an acceptable value, but most node modules care
// whether it's set to "development" or "production"
"NODE_ENV": "development",
"logger" : {
"format" : "dev"
},
"session" : {
"secret": "thisisareallyreallylongsecrettoencryptcookies",
"cookie": {
"maxAge": 2419200000,
"httpOnly": true,
},
"proxy": true
},
"staticMiddleware": {
"maxAge": "0"
},
"dirs": {
"wwwRoot": "public",
"templates": "public/templates"
},
"publishStore": {
"type": "local",
"options": {
"root": "./user_published",
"namePrefix": "v",
"nameSuffix": ".html"
}
},
"feedbackStore": {
"type": "local",
"options": {
"root": "./user_published",
"namePrefix": "feedback",
"nameSuffix": ".json"
}
},
"crashStore": {
"type": "local",
"options": {
"root": "./user_published",
"namePrefix": "crash",
"nameSuffix": ".json"
}
},
"imageStore": {
"type": "local",
"options": {
"root": "./user_published",
"namePrefix": "images"
}
},
"templates": {
"basic": "{{templateBase}}basic/config.json"
},
"database": {
"database": "popcorn",
"username": null,
"password": null,
"options": {
"logging": false,
"dialect": "sqlite",
"storage": "popcorn.sqlite",
"define": {
"charset": "utf8",
"collate": "utf8_general_ci"
}
}
}
};