Skip to content

Commit

Permalink
chore: zhinst demo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield committed May 6, 2024
1 parent e9b503b commit 3480cf3
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions apps/cms/.lagoon.env.demo-zhinst
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions apps/preview/.lagoon.env.demo-zhinst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DRUPAL_URL="https://zhinst.cms.amazeelabs.dev"
29 changes: 29 additions & 0 deletions apps/website/.lagoon.env.demo-zhinst
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 3480cf3

Please sign in to comment.