Skip to content

Commit

Permalink
chore: grbr demo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed May 6, 2024
1 parent e9b503b commit 17822d8
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-grbr:
routes:
- nginx:
- grbr.cms.amazeelabs.dev
- build:
- grbr.build.amazeelabs.dev
- preview:
- grbr.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-grbr
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PROJECT_NAME=example
PUBLISHER_URL="https://grbr.build.amazeelabs.dev"
NETLIFY_URL="https://grbr.amazeelabs.dev"
PREVIEW_URL="https://grbr.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-grbr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DRUPAL_URL="https://grbr.cms.amazeelabs.dev"
29 changes: 29 additions & 0 deletions apps/website/.lagoon.env.demo-grbr
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://example.cms.amazeelabs.dev"
NETLIFY_URL="https://grbr.amazeelabs.dev"
NETLIFY_SITE_ID="73d7ddf1-5bae-48b0-b438-a5e9a5558fd0"

# -----------------------------------------------
# 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 17822d8

Please sign in to comment.