1 | // DEFAULT EXPRESSER SETTINGS
|
2 | // This file has the default settings for all Expresser modules.
|
3 | // If you want to define or override settings, please create a settings.json
|
4 | // file, or for specific environments create a settings.NODE_ENV.json with the
|
5 | // specific NODE_ENV values. For example settings.production.json.
|
6 |
|
7 | {
|
8 | // APP
|
9 | // -------------------------------------------------------------------------
|
10 | "app": {
|
11 | // Sets the "Access-Control-Allow-Origin" header. To allow all, set it to "*".
|
12 | "allowOriginHeader": null,
|
13 | // Body parser module options. Depends on the body-parser middleware being installed.
|
14 | "bodyParser": {
|
15 | "enabled": true,
|
16 | // Extended URL encoded?
|
17 | "extended": true,
|
18 | // Default post data limit is set to 10MB by default.
|
19 | "limit": "10mb",
|
20 | // Raw bodies have a higher limit, 50MB.
|
21 | "rawLimit": "50mb",
|
22 | // Which types should be parsed by the raw body parser? Set to null to disable.
|
23 | "rawTypes": ["application/octet-stream", "application/pdf", "audio/*", "image/*", "video/*"]
|
24 | },
|
25 | // Enable HTTP compression? Depends on the compression middleware being installed.
|
26 | "compression": {
|
27 | "enabled": false,
|
28 | // Level of compression, from 0 (fast) to 9 (more compression).
|
29 | "level": 6
|
30 | },
|
31 | // Cookie options. Depends on the cookie-parser middleware being installed.
|
32 | "cookie": {
|
33 | "enabled": false
|
34 | },
|
35 | // Emit events for different methods.
|
36 | "events": {
|
37 | // Emit an event for "render".
|
38 | "render": false
|
39 | },
|
40 | // Node.js server IP. Leaving blank or null will set the server to listen on all addresses.
|
41 | "ip": null,
|
42 | // Node.js server port.
|
43 | "port": 8080,
|
44 | // Path to the public static folder used by Express. Set to null to not configure the static folder.
|
45 | "publicPath": "./public/",
|
46 | // Secret key used for session and cookies encryption.
|
47 | "secret": "ExpresserSecret",
|
48 | // Session options. Depends on the express-session middleware being installed.
|
49 | "session": {
|
50 | "enabled": false,
|
51 | // Interval in milliseconds to check for expired sessions, default is 5 minutes.
|
52 | "checkPeriod": 300000,
|
53 | // Set HttpOnly flag on session cookies?
|
54 | "httpOnly": true,
|
55 | // Max age of session cookies, in seconds, default is 20min.
|
56 | "maxAge": 1200,
|
57 | // Proxy session cookies? Enabled if using behind a proxy / load balancer.
|
58 | "proxy": true,
|
59 | // Resave session after each request even if unchanged?
|
60 | "resave": false,
|
61 | // Save uninitialized sessions to the store?
|
62 | "saveUninitialized": false,
|
63 | // Use secure cookies for session management? Needs HTTPS to work!
|
64 | "secure": false
|
65 | },
|
66 | // SSL options to bind server to HTTPS.
|
67 | "ssl": {
|
68 | // Is SSL enabled? Please note that you must specify the path to the
|
69 | // certificate files below.
|
70 | "enabled": false,
|
71 | // Path to the SSL key file.
|
72 | "keyFile": null,
|
73 | // Path to the SSL certificate file.
|
74 | "certFile": null,
|
75 | // Set to false to ignore SSL / TLS certificate warnings and accept expired
|
76 | // and self-signed certificates (not recommended on production).
|
77 | "rejectUnauthorized": true
|
78 | },
|
79 | // Server request / response timeout, in milliseconds, default is 2 minutes.
|
80 | "timeout": 120000,
|
81 | // The app title. This must be set so Expresser can properly identify your app.
|
82 | "title": "Expresser",
|
83 | // Trust proxy for secure cookies etc? Default is 1 (trust).
|
84 | "trustProxy": 1,
|
85 | // The app's base URL, including http(s)://.
|
86 | "url": "http://github.com/igoramadas/expresser",
|
87 | // The view engine used by Express, for example "pug".. Leave null to not use a view engine.
|
88 | "viewEngine": null,
|
89 | // Default view options to be passed to the Express renderer.
|
90 | "viewOptions": {
|
91 | "layout": false
|
92 | },
|
93 | // Path to the views directory.
|
94 | "viewPath": "./assets/views/"
|
95 | },
|
96 | "general": {
|
97 | // Enable app wide debugging?
|
98 | "debug": false,
|
99 | // Default encoding is UTF8.
|
100 | "encoding": "utf8"
|
101 | },
|
102 | "logger": {
|
103 | // Enable the default error logging for failed requests.
|
104 | "errorHandler": false,
|
105 | // Log error stack traces? Set to true with care, as it might expose sensitive data.
|
106 | "errorStack": false,
|
107 | // Max depth of sub properties to be logged for JSON objects.
|
108 | "maxDepth": 10
|
109 | },
|
110 | "routes": {
|
111 | // Default filename of the routes JSON file.
|
112 | "filename": "routes.json",
|
113 | "swagger": {
|
114 | // Expose loaded swagger file on the /swagger.json route.
|
115 | "exposeJson": false,
|
116 | // Default filename of the swagger definitions file.
|
117 | "filename": "swagger.json"
|
118 | }
|
119 | }
|
120 | }
|