diff --git a/octane.md b/octane.md index f371a44809..5cdb94c449 100644 --- a/octane.md +++ b/octane.md @@ -137,6 +137,17 @@ If the `--log-level` option is explicitly passed to the `php artisan octane:star You may consult [the official FrankenPHP documentation](https://frankenphp.dev/docs/docker/) for more information on running FrankenPHP with Docker. + +#### Custom Caddyfile Configuration + +When using FrankenPHP, you may specify a custom Caddyfile using the `--caddyfile` option when starting Octane: + +```shell +php artisan octane:start --server=frankenphp --caddyfile=/path/to/your/Caddyfile +``` + +This allows you to customize FrankenPHP's configuration beyond the default settings, such as adding custom middleware, configuring advanced routing, or setting up custom directives. You may consult the [official Caddy documentation](https://caddyserver.com/docs/caddyfile) for more information on Caddyfile syntax and configuration options. + ### RoadRunner