Skip to content

Commit

Permalink
Update Caddyfile path in docs (#1908)
Browse files Browse the repository at this point in the history
* Update index.md

Adapted path to Caddyfile

* Update caddy.md

Adapted path to Caddyfile
  • Loading branch information
MaximumP committed Mar 18, 2024
1 parent ad6c3eb commit 7cc70df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distribution/caddy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion distribution/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/`:
Expand Down

0 comments on commit 7cc70df

Please sign in to comment.