diff --git a/distribution/index.md b/distribution/index.md index eb84745f5f2..2ff8cd283b9 100644 --- a/distribution/index.md +++ b/distribution/index.md @@ -91,8 +91,7 @@ This starts the following services: | Name | Description | |----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| caddy | [Caddy web server](caddy.md) with the [Mercure](../core/mercure.md) (real-time and async) and [Vulcain](https://vulcain.rocks) (relations preloading) modules | -| php | The API with PHP 8, Composer, and sensitive configs | +| php | The API powered by [FrankenPHP](https://frankenphp.dev) (a modern application server for PHP built on top of [Caddy web server](caddy.md) and with native support for [Mercure realtime](../core/mercure.md), [Vulcain relations preloading](https://vulcain.rocks), and [XDebug](debugging.md)), Composer, and sensitive configs | | pwa | Next.js project compatible with Create Client and having Admin preinstalled | | database | PostgreSQL database server | diff --git a/extra/troubleshooting.md b/extra/troubleshooting.md index 91bc1507c2c..4cc3609f23b 100644 --- a/extra/troubleshooting.md +++ b/extra/troubleshooting.md @@ -50,11 +50,11 @@ Some of your API calls fail with a 502 error and the logs for the API container This can be due to the cache invalidation headers that are too big for NGINX. When you query the API, API Platform adds the IDs of all returned entities and their dependencies in the headers like so : `Cache-Tags: /entity/1,/dependent_entity/1,/entity/2`. This can overflow the default header size (4k) when your API gets larger and more complex. -You can modify the `api/docker/nginx/conf.d/default.conf` file and set values to `fastcgi_buffer_size` and `fastcgi_buffers` that suit your needs, like so: +You can modify the PHP FPM configuration file and set values to `fastcgi_buffer_size` and `fastcgi_buffers` that suit your needs, like so: ```nginx server { - root /srv/api/public; + root /app/public; location / { # try to serve file directly, fallback to index.php @@ -67,7 +67,7 @@ server { #resolver 127.0.0.11; #set $upstream_host php; #fastcgi_pass $upstream_host:9000; - + # Bigger buffer size to handle cache invalidation headers expansion fastcgi_buffer_size 32k; fastcgi_buffers 8 16k;