From 3480cf3f3c18f6918d28f548a8c6be60ace2cb36 Mon Sep 17 00:00:00 2001 From: Christophe Jossart Date: Mon, 6 May 2024 16:39:09 +0200 Subject: [PATCH] chore: zhinst demo setup --- .lagoon.yml | 13 +++++++++++++ apps/cms/.lagoon.env.demo-zhinst | 7 +++++++ apps/preview/.lagoon.env.demo-zhinst | 1 + apps/website/.lagoon.env.demo-zhinst | 29 ++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 apps/cms/.lagoon.env.demo-zhinst create mode 100644 apps/preview/.lagoon.env.demo-zhinst create mode 100644 apps/website/.lagoon.env.demo-zhinst diff --git a/.lagoon.yml b/.lagoon.yml index 22179218c..ecaee933c 100644 --- a/.lagoon.yml +++ b/.lagoon.yml @@ -69,3 +69,16 @@ environments: schedule: '*/15 * * * *' command: drush cron service: cli + demo-zhinst: + routes: + - nginx: + - zhinst.cms.amazeelabs.dev + - build: + - zhinst.build.amazeelabs.dev + - preview: + - zhinst.preview.amazeelabs.dev + cronjobs: + - name: drush cron + schedule: '*/15 * * * *' + command: drush cron + service: cli diff --git a/apps/cms/.lagoon.env.demo-zhinst b/apps/cms/.lagoon.env.demo-zhinst new file mode 100644 index 000000000..e2eb34eb2 --- /dev/null +++ b/apps/cms/.lagoon.env.demo-zhinst @@ -0,0 +1,7 @@ +PROJECT_NAME=example +PUBLISHER_URL="https://zhinst.build.amazeelabs.dev" +NETLIFY_URL="https://zhinst.amazeelabs.dev" +PREVIEW_URL="https://zhinst.preview.amazeelabs.dev" + +# Used to set the original client secret. +PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME diff --git a/apps/preview/.lagoon.env.demo-zhinst b/apps/preview/.lagoon.env.demo-zhinst new file mode 100644 index 000000000..b26e5d193 --- /dev/null +++ b/apps/preview/.lagoon.env.demo-zhinst @@ -0,0 +1 @@ +DRUPAL_URL="https://zhinst.cms.amazeelabs.dev" diff --git a/apps/website/.lagoon.env.demo-zhinst b/apps/website/.lagoon.env.demo-zhinst new file mode 100644 index 000000000..dc05ba1f7 --- /dev/null +++ b/apps/website/.lagoon.env.demo-zhinst @@ -0,0 +1,29 @@ +PROJECT_NAME=example +DRUPAL_INTERNAL_URL="http://nginx:8080" +DRUPAL_EXTERNAL_URL="https://zhinst.cms.amazeelabs.dev" +NETLIFY_URL="https://zhinst.amazeelabs.dev" +NETLIFY_SITE_ID="4ec8534f-e75c-47bb-8052-20a96842c1fe" + +# ----------------------------------------------- +# Publisher authentication with Drupal (OAuth2). +# See main ./README.md for more information. +# ----------------------------------------------- +# Set to true to fully skip authentication. +PUBLISHER_SKIP_AUTHENTICATION=false + +# Secret from the Drupal Publisher Consumer. +PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME + +# Client id from the Drupal Publisher Consumer. +PUBLISHER_OAUTH2_CLIENT_ID=publisher + +# A random string, used to encrypt the session. +PUBLISHER_OAUTH2_SESSION_SECRET=REPLACE_ME + +# "development" or "production", production will trust first proxy +# and serve secure cookies. +PUBLISHER_OAUTH2_ENVIRONMENT_TYPE=production + +# DRUPAL_EXTERNAL_URL is used by default, but can be overridden +# to match the Drupal production url, without the nginx prefix. +PUBLISHER_OAUTH2_TOKEN_HOST="${DRUPAL_EXTERNAL_URL}"