From bc40031a020252bafd3fd91742a551478733b1a8 Mon Sep 17 00:00:00 2001 From: MaximumP Date: Mon, 26 Feb 2024 13:38:53 +0100 Subject: [PATCH 1/2] Update index.md Adapted path to Caddyfile --- distribution/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/index.md b/distribution/index.md index 4b4e16912cf..c91cac6a5e7 100644 --- a/distribution/index.md +++ b/distribution/index.md @@ -201,7 +201,7 @@ You'll need to add a security exception in your browser to accept the self-signe for this container when installing the framework. Later you will probably replace this welcome screen by the homepage of your Next.js application. If you don't plan to create -a Progressive Web App, you can remove the `pwa/` directory as well as the related lines in `docker-compose*.yml` and in `api/docker/caddy/Caddyfile` (don't do it +a Progressive Web App, you can remove the `pwa/` directory as well as the related lines in `docker-compose*.yml` and in `api/frankenphp/Caddyfile` (don't do it now, we'll use this container later in this tutorial). Click on the "API" button, or go to `https://localhost/docs/`: From 160c9146175df80257f0cd97e1f06a4ee3b12a3e Mon Sep 17 00:00:00 2001 From: MaximumP Date: Mon, 26 Feb 2024 13:39:59 +0100 Subject: [PATCH 2/2] Update caddy.md Adapted path to Caddyfile --- distribution/caddy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/caddy.md b/distribution/caddy.md index b6fa7a22f69..af0e3da931a 100644 --- a/distribution/caddy.md +++ b/distribution/caddy.md @@ -19,7 +19,7 @@ For instance, when you create your own Symfony controllers serving HTML pages, or when using bundles such as EasyAdmin or SonataAdmin. To do so, you have to tweak the rules used to route the requests. -Open `api-platform/api/docker/caddy/Caddyfile` and modify the expression. +Open `api-platform/api/frankenphp/Caddyfile` and modify the expression. You can use [any CEL (Common Expression Language) expression](https://caddyserver.com/docs/caddyfile/matchers#expression) supported by Caddy. For instance, if you want to route all requests to a path starting with `/admin` to the API, modify the existing expression like this: