Skip to content

Commit a1ed07d

Browse files
leorossigithub-actions[bot]
authored andcommitted
[automated commit] Bump docs to versions 3.14.0, 2.75.2, 1.53.4
1 parent 6a5f415 commit a1ed07d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/reference/runtime/_shared-configuration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ runtime. Each application object supports the following settings:
5353
the application.
5454
- **`useHttp`** (`boolean`) - The application will be started on a random HTTP port
5555
on `127.0.0.1`, and exposed to the other applications via that port, on default it is set to `false`. Set it to `true` if you are using [@fastify/express](https://github.com/fastify/fastify-express).
56+
- **`reuseTcpPorts`**: Enable the use of the [`reusePort`](https://nodejs.org/dist/latest/docs/api/net.html#serverlistenoptions-callback) option whenever any TCP server starts listening on a port. The default is `true`. The values specified here overrides the values specified in the runtime.
5657
- **`workers`** - The number of workers to start for this application. If the application is the entrypoint or if the runtime is running in development mode this value is ignored and hardcoded to `1`. This can be specified as:
5758
- **`number`** - A fixed number of workers
5859
- **`object`** - Advanced worker configuration with the following properties:
@@ -304,6 +305,10 @@ An object with the following settings:
304305
- `key` (**required**, `string`, `object`, or `array`) - If `key` is a string, it specifies the private key to be used. If `key` is an object, it must have a `path` property specifying the private key file. Multiple keys are supported by passing an array of keys.
305306
- `cert` (**required**, `string`, `object`, or `array`) - If `cert` is a string, it specifies the certificate to be used. If `cert` is an object, it must have a `path` property specifying the certificate file. Multiple certificates are supported by passing an array of keys.
306307

308+
### `reuseTcpPorts`
309+
310+
Enable the use of the [`reusePort`](https://nodejs.org/dist/latest/docs/api/net.html#serverlistenoptions-callback) option whenever any TCP server starts listening on a port. The default is `true`. This setting can be overridden at the application level.
311+
307312
### `logger`
308313

309314
This configures the Platformatic Runtime `logger`, based on [pino](https://getpino.io).

0 commit comments

Comments
 (0)