@nsshunt/stsconfig 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stsconfig.js +26 -0
package/package.json
CHANGED
package/stsconfig.js
CHANGED
|
@@ -196,6 +196,32 @@ const defconfig =
|
|
|
196
196
|
// Use secure cookies option when passing back cookies from STS services (such as STSAuth service).
|
|
197
197
|
// This setting will be ignore for production mode. In production mode services will always use secure cookies.
|
|
198
198
|
,useSecureCookies: (process.env.USE_SECURE_COOKIES === undefined ? false : (process.env.USE_SECURE_COOKIES === "true" ? true : false ))
|
|
199
|
+
|
|
200
|
+
,keepAlive: (process.env.KEEP_ALIVE === undefined ? true : (process.env.KEEP_ALIVE === "true" ? true : false ))
|
|
201
|
+
// Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
202
|
+
// keepAlive <boolean> Keep sockets around even when there are no outstanding requests, so they can be used for future requests without having to reestablish a
|
|
203
|
+
// TCP connection. Not to be confused with the keep-alive value of the Connection header. The Connection: keep-alive header is always sent when using an agent
|
|
204
|
+
// except when the Connection header is explicitly specified or when the keepAlive and maxSockets options are respectively set to false and Infinity, in which
|
|
205
|
+
// case Connection: close will be used. Default: false.
|
|
206
|
+
|
|
207
|
+
,maxSockets: (process.env.MAX_SOCKETS === undefined ? 10 : parseInt(process.env.MAX_SOCKETS))
|
|
208
|
+
// Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
209
|
+
// maxSockets <number> Maximum number of sockets to allow per host. If the same host opens multiple concurrent connections, each request will use new socket until the
|
|
210
|
+
// maxSockets value is reached. If the host attempts to open more connections than maxSockets, the additional requests will enter into a pending request queue, and will
|
|
211
|
+
// enter active connection state when an existing connection terminates. This makes sure there are at most maxSockets active connections at any point in time,
|
|
212
|
+
// from a given host. Default: Infinity.
|
|
213
|
+
|
|
214
|
+
,maxTotalSockets: (process.env.MAX_TOTAL_SOCKETS === undefined ? 20 : parseInt(process.env.MAX_TOTAL_SOCKETS))
|
|
215
|
+
// Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
216
|
+
// maxTotalSockets <number> Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
|
|
217
|
+
|
|
218
|
+
,maxFreeSockets: (process.env.MAX_FREE_SOCKETS === undefined ? 256 : parseInt(process.env.MAX_FREE_SOCKETS))
|
|
219
|
+
// Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
220
|
+
// maxFreeSockets <number> Maximum number of sockets per host to leave open in a free state. Only relevant if keepAlive is set to true. Default: 256.
|
|
221
|
+
|
|
222
|
+
,timeout: (process.env.TIMEOUT === undefined ? 10000 : parseInt(process.env.TIMEOUT))
|
|
223
|
+
// Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
224
|
+
// timeout <number> Socket timeout in milliseconds. This will set the timeout when the socket is created.
|
|
199
225
|
}
|
|
200
226
|
|
|
201
227
|
// Preference order is YAML file then .env file
|