Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ibexa Cloud doc #4388

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions sites/platform/src/guides/ibexa/fastly.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ description: |
In Ibexa DXP, Varnish is enabled by default when deploying on {{% vendor/name %}}
To use Fastly, Varnish must be disabled:

- Remove environment variable `TRUSTED_PROXIES: "REMOTE_ADDR"` in [`{{< vendor/configfile "app" >}}](https://github.com/ezsystems/ezplatform/blob/master/.platform.app.yaml)
- Remove the Varnish service in [`{{< vendor/configfile "services" >}}`](https://github.com/ezsystems/ezplatform/blob/master/.platform/services.yaml)
- In [`{{< vendor/configfile "routes" >}}`](https://github.com/ezsystems/ezplatform/blob/master/.platform/routes.yaml),
- Remove environment variable `TRUSTED_PROXIES: "REMOTE_ADDR"` in [`{{< vendor/configfile "app" >}}`](https://github.com/ibexa/post-install/blob/4.6/resources/platformsh/ibexa-commerce/4.6/.platform.app.yaml#L66)
- Remove the Varnish service in [`{{< vendor/configfile "services" >}}`](https://github.com/ibexa/post-install/blob/4.6/resources/platformsh/common/4.6/.platform/services.yaml#L80-L87)
- In [`{{< vendor/configfile "routes" >}}`](https://github.com/ibexa/post-install/blob/4.6/resources/platformsh/common/4.6/.platform/routes.yaml#L3),
change routes to use `myapp` instead of the `varnish` service you removed in previous step:

```diff
Expand All @@ -40,19 +40,19 @@ Using the CLI, run the following commands to set the configuration on your produ
(Note that they inherit to all other environments by default unless overridden.)

```bash
{{% vendor/cli %}} variable:create -e main --level environment env:HTTPCACHE_PURGE_TYPE --value 'fastly'
{{% vendor/cli %}} variable:create -e main --level environment env:FASTLY_SERVICE_ID --value 'YOUR_ID_HERE'
{{% vendor/cli %}} variable:create -e main --level environment env:FASTLY_KEY --value 'YOUR_TOKEN_HERE'
ibexa_cloud variable:create -e main --level environment env:HTTPCACHE_PURGE_TYPE --value 'fastly'
ibexa_cloud variable:create -e main --level environment env:FASTLY_SERVICE_ID --value 'YOUR_ID_HERE'
ibexa_cloud variable:create -e main --level environment env:FASTLY_KEY --value 'YOUR_TOKEN_HERE'
```

Replacing `YOUR_ID_HERE` with the Fastly Service ID and Key obtained from Fastly.

Note: On a {{% names/dedicated-gen-2 %}} cluster, set those values on the `production` branch:

```bash
{{% vendor/cli %}} variable:set -e production env:HTTPCACHE_PURGE_TYPE fastly
{{% vendor/cli %}} variable:set -e production env:FASTLY_SERVICE_ID YOUR_ID_HERE
{{% vendor/cli %}} variable:set -e production env:FASTLY_KEY YOUR_TOKEN_HERE
ibexa_cloud variable:set -e production env:HTTPCACHE_PURGE_TYPE fastly
ibexa_cloud variable:set -e production env:FASTLY_SERVICE_ID YOUR_ID_HERE
ibexa_cloud variable:set -e production env:FASTLY_KEY YOUR_TOKEN_HERE
```

## Setup the correct VCL files
Expand Down
Loading