-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.js
57 lines (57 loc) · 1.54 KB
/
config-example.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
module.exports = {
helmet: {
directives: {
defaultSrc: ["'self'", "example.com", "*.example.com"],
baseUri: ["'self'", "example.com", "*.example.com"],
blockAllMixedContent: [],
fontSrc: ["*"],
formAction: ["'self'", "example.com", "*.example.com"],
frameAncestors: ["'self'", "example.com", "*.example.com"],
imgSrc: ["*", "blob:"],
objectSrc: ["'none'"],
scriptSrc: ["*", "'unsafe-eval'", "'unsafe-inline'"],
scriptSrcAttr: ["'none'"],
styleSrc: ["'self'", "example.com", "*.example.com", "'unsafe-inline'"]
}
},
source: {
folder: "./src/"
},
pages: {
pageName: "page",
scriptName: "script",
styleName: "style",
folderPath: "./src/pages/"
},
public: {
staticLinkDev: "/public/",
staticLinkProd: "https://static.example.com/",
bundlesFolder: "./public/bundles/",
pagesFolder: "./public/pages/",
externals: {
jquery: "jQuery"
}
},
render: {
doctype: "<!DOCTYPE html>",
staticPrefix: "_",
keepPrefix: false
},
mongodb: {
uriDev: "devURI",
uriProd: "prodURI"
},
session: {
secret: "secret",
cookieAge: 1000 * 60 * 60 * 24,
touchAfter: 60 * 60
},
filestorage: {
path: "/filestorage/"
},
port: 8080,
domainName: "your domain name",
server: {
requestTimeout: 60 * 60 * 1000
}
}