diff --git a/docs/options.md b/docs/options.md index a6bca2623..a85405a31 100644 --- a/docs/options.md +++ b/docs/options.md @@ -57,6 +57,7 @@ You can also customize the `Caddyfile` by using the following environment variab | `CADDY_GLOBAL_OPTIONS` | the [global options block](https://caddyserver.com/docs/caddyfile/options#global-options), one per line | | | `CADDY_EXTRA_CONFIG` | the [snippet](https://caddyserver.com/docs/caddyfile/concepts#snippets) or the [named-routes](https://caddyserver.com/docs/caddyfile/concepts#named-routes) options block, one per line | | | `CADDY_SERVER_EXTRA_DIRECTIVES` | the [`Caddyfile` directives](https://caddyserver.com/docs/caddyfile/concepts#directives) | | +| `CADDY_SERVER_LOG_OPTIONS` | the [server log options block](https://caddyserver.com/docs/caddyfile/directives/log), one per line | | | `SERVER_NAME` | the server name or address | `localhost` | | `FRANKENPHP_CONFIG` | a list of extra [FrankenPHP directives](https://frankenphp.dev/docs/config/#caddyfile-config), one per line | `import worker.Caddyfile` | | `MERCURE_TRANSPORT_URL` | the value passed to the `transport_url` directive | `bolt://mercure.db` | diff --git a/frankenphp/Caddyfile b/frankenphp/Caddyfile index b8bb57db7..fc3dda5d6 100644 --- a/frankenphp/Caddyfile +++ b/frankenphp/Caddyfile @@ -10,6 +10,7 @@ {$SERVER_NAME:localhost} { log { + {$CADDY_SERVER_LOG_OPTIONS} # Redact the authorization query parameter that can be set by Mercure format filter { request>uri query {