From a497ec3e303a6208e4e0626979b399e820433885 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 13 Feb 2025 16:57:25 +0100 Subject: [PATCH 1/3] fastly.md: add missing closing backquote --- sites/platform/src/guides/ibexa/fastly.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/platform/src/guides/ibexa/fastly.md b/sites/platform/src/guides/ibexa/fastly.md index 683ed7003a..9edf3f28a5 100644 --- a/sites/platform/src/guides/ibexa/fastly.md +++ b/sites/platform/src/guides/ibexa/fastly.md @@ -13,7 +13,7 @@ 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 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 `myapp` instead of the `varnish` service you removed in previous step: From 655e57c4b6dce933b0d2f0aee79afacb18a276b8 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 13 Feb 2025 17:07:03 +0100 Subject: [PATCH 2/3] fastly.md: Use 4.6 files Use 4.6 files from GitHub ibexa/post-install instead of old branded ones. --- sites/platform/src/guides/ibexa/fastly.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sites/platform/src/guides/ibexa/fastly.md b/sites/platform/src/guides/ibexa/fastly.md index 9edf3f28a5..00b312e1d5 100644 --- a/sites/platform/src/guides/ibexa/fastly.md +++ b/sites/platform/src/guides/ibexa/fastly.md @@ -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 From dc14acb2e6c1d54aa0b58da25987dd45749a090d Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 13 Feb 2025 17:41:47 +0100 Subject: [PATCH 3/3] fastly.md: ibexa_cloud Hard coded --- sites/platform/src/guides/ibexa/fastly.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sites/platform/src/guides/ibexa/fastly.md b/sites/platform/src/guides/ibexa/fastly.md index 00b312e1d5..127ec9db0a 100644 --- a/sites/platform/src/guides/ibexa/fastly.md +++ b/sites/platform/src/guides/ibexa/fastly.md @@ -40,9 +40,9 @@ 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. @@ -50,9 +50,9 @@ 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