You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`handler`| Request handler to be used for any server, unless overridden specifically with `http.handler` or `https.handler`. |
14
14
|`timeout`| Socket timeout in milliseconds for any server, unless overridden with `http.timeout` or `https.timeout`. Defaults to the node default of 2 minutes. |
15
+
|`keepAliveTimeout`| Milliseconds of activity before sockets are destroyed. Defaults to the node default value (currently 5 seconds). |
15
16
|`http`| Optional. If present, an HTTP server is started. This can be an object or a number. If it's a number, it's used as the TCP port for an HTTP server. You may also use an Array to start multiple servers. |
16
17
|`http.port`| TCP port for the HTTP server. Defaults to `80`. |
17
18
|`http.host`| The address the HTTP server is bound to. Defaults to `::` or `0.0.0.0`. |
18
19
|`http.timeout`| Socket timeout in milliseconds for the server. If unspecified, the top-level `timeout` configuration is used. |
20
+
|`http.keepAliveTimeout`| Overrides the top-level keepAliveTimeout setting if specified. |
19
21
|`http.handler`| Handler for HTTP requests. If you want to share a handler with all servers, use a top-level `handler` config property instead. |
20
22
|`https`| Optional object. If present, an HTTPS server is started. You may start multiple HTTPS servers by passing an array of objects |
21
23
|`https.port`| TCP port for the HTTPS server. Defaults to `443`. |
22
24
|`https.host`| The address the HTTPS server is bound to. Defaults to `::` or `0.0.0.0`. |
23
25
|`https.timeout`| Socket timeout in milliseconds for the server. If unspecified, the top-level `timeout` configuration is used. |
26
+
|`https.keepAliveTimeout`| Overrides the top-level keepAliveTimeout setting if specified. |
24
27
|`https.ciphers`| Defaults to a [default cipher suite](#note-on-security). To customize, either supply a colon-separated string or array of strings for the ciphers you want the server to support. |
25
28
|`https.honorCipherOrder`| If true, prefer the server's specified cipher order instead of the client's. Defaults to `false`. |
26
29
|`https.root`| Root directory for certificate/key files. See [Certificate normalization](#certificate-normalization) for more details. |
0 commit comments