Skip to content

Commit

Permalink
Replacing YOUR_ID_HERE for both commands with the appropriate YOUR_TO…
Browse files Browse the repository at this point in the history
…KEN_HERE for the FASTLY_KEY variable (#4076)
  • Loading branch information
ramit-mitra authored Jun 24, 2024
1 parent f9f6795 commit d5d3d81
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 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/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),
change routes to use `app` instead of the `varnish` service you removed in previous step:

```diff
Expand All @@ -42,7 +42,7 @@ Using the CLI, run the following commands to set the configuration on your produ
```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_ID_HERE'
{{% vendor/cli %}} 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.
Expand All @@ -52,7 +52,7 @@ Note: On a {{% names/dedicated-gen-2 %}} cluster, set those values on the `produ
```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_ID_HERE
{{% vendor/cli %}} variable:set -e production env:FASTLY_KEY YOUR_TOKEN_HERE
```

## Setup the correct VCL files
Expand All @@ -63,7 +63,6 @@ A VCL snippet can be found in `vendor/ibexa/fastly/fastly/snippet_re_enable_shie
They handle varying cache by user context hash _(permissions)_
as well as several other needs by Ibexa DXP and it's underlying HttpCache system.


## Configure Fastly

See the alternate [Go-live process for Fastly](/domains/cdn/_index.md#enable-mtls) on {{% vendor/name %}}.
Expand Down

0 comments on commit d5d3d81

Please sign in to comment.