Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A minimal `Caddyfile` to serve a PHP application is shown below:
# The hostname to respond to
localhost

# Optionaly, the directory to serve files from, otherwise defaults to the current directory
# Optionally, the directory to serve files from, otherwise defaults to the current directory
#root public/
php_server
```
Expand Down Expand Up @@ -112,6 +112,11 @@ You can also explicitly configure FrankenPHP using the [global option](https://c
# ...
```

If the worker mode is enabled, an additional thread is required to handle the incoming requests,
so the default `num_threads` value is `1 + 2x(number of available CPUs)`.

Thus, in that mode if `num_threads` and `num` are explicitly set, `num_threads` must be strictly greater then `num`.

Comment on lines +115 to +119
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The additional thread is always started in-reserve to handle any non-worker mode requests. This block probably better fits into worker.md, somewhere here

Alternatively, you may use the one-line short form of the `worker` option:

```caddyfile
Expand Down