Skip to content

Commit

Permalink
docs: fix some more typos (#285)
Browse files Browse the repository at this point in the history
* Fix some typos in the docs

* Fix some more typos
  • Loading branch information
jdreesen authored Oct 31, 2023
1 parent 35d4075 commit 8475ad9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/config.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Configuration

FrankenPHP, Caddy as well the Mercure and Vulcain modules can be configured using [the formats supported by Caddy](https://caddyserver.com/docs/getting-started#your-first-config).
FrankenPHP, Caddy as well as the Mercure and Vulcain modules can be configured using [the formats supported by Caddy](https://caddyserver.com/docs/getting-started#your-first-config).

In the Docker image, the `Caddyfile` is located at `/etc/caddy/Caddyfile`.

You can also configure PHP using `php.ini` as usual.

In the Docker image, the `php.ini` file is not present, you can create it or `COPY` manually.

If you copy `php.ini` from `$PHP_INI_DIR/php.ini-production` or `$PHP_INI_DIR/php.ini-development` you also must set variable `variables_order = "EGPCS"`, because default value for `variables_order` is `"EGPCS"` but in `php.ini-production` and `php.ini-development` we have `"GPCS"`. And in this case `worker` not work propertly.
If you copy `php.ini` from `$PHP_INI_DIR/php.ini-production` or `$PHP_INI_DIR/php.ini-development`, you also must set the variable `variables_order = "EGPCS"`, because the default value for `variables_order` is `"EGPCS"`, but in `php.ini-production` and `php.ini-development` we have `"GPCS"`. And in this case, `worker` does not work properly.

```dockerfile
FROM dunglas/frankenphp
Expand Down Expand Up @@ -134,11 +134,11 @@ The following environment variables can be used to inject Caddy directives in th

Unlike with FPM and CLI SAPIs, environment variables are **not** exposed by default in superglobals `$_SERVER` and `$_ENV`.

To propagate environment variables to `$_SERVER` and `$_ENV`, set the `php.ini` `variables_order` directive to `EGPS`.
To propagate environment variables to `$_SERVER` and `$_ENV`, set the `php.ini` `variables_order` directive to `EGPCS`.

## Enable the Debug Mode

When using the Docker image, set the `CADDY_DEBUG` environment variable to `debug` to enable the debug mode:
When using the Docker image, set the `CADDY_GLOBAL_OPTIONS` environment variable to `debug` to enable the debug mode:

```console
docker run -v $PWD:/app/public \
Expand Down
2 changes: 1 addition & 1 deletion docs/mercure.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Real-time

FrankenPHP comes with a built-in Mercure hub!
Mercure allows to push event in real-time to all the connected devices: they will receive instantly a JavaScript event.
Mercure allows to push events in real-time to all the connected devices: they will receive a JavaScript event instantly.

No JS library or SDK required!

Expand Down

0 comments on commit 8475ad9

Please sign in to comment.