-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve lagoon environment variables
Generic default variables that work with stock hostnames and specifics for dev/stage/prod that allow custom domains.
- Loading branch information
Showing
12 changed files
with
114 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
PROJECT_NAME=example | ||
PUBLISHER_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.build.amazeelabs.dev" | ||
NETLIFY_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.amazeelabs.dev" | ||
PREVIEW_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.preview.amazeelabs.dev" | ||
PUBLISHER_URL="https://build.${LAGOON_ENVIRONMENT}.${LAGOON_PROJECT}.ch4.amazee.io" | ||
NETLIFY_URL="https://build.${LAGOON_ENVIRONMENT}.${LAGOON_PROJECT}.ch4.amazee.io" | ||
PREVIEW_URL="https://preview.${LAGOON_ENVIRONMENT}.${LAGOON_PROJECT}.ch4.amazee.io" | ||
|
||
# Used to set the original client secret. | ||
PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PROJECT_NAME=example | ||
PUBLISHER_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.build.amazeelabs.dev" | ||
NETLIFY_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.amazeelabs.dev" | ||
PREVIEW_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.preview.amazeelabs.dev" | ||
|
||
# Used to set the original client secret. | ||
PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PROJECT_NAME=example | ||
PUBLISHER_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.build.amazeelabs.dev" | ||
NETLIFY_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.amazeelabs.dev" | ||
PREVIEW_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.preview.amazeelabs.dev" | ||
|
||
# Used to set the original client secret. | ||
PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PROJECT_NAME=example | ||
PUBLISHER_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.build.amazeelabs.dev" | ||
NETLIFY_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.amazeelabs.dev" | ||
PREVIEW_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.preview.amazeelabs.dev" | ||
|
||
# Used to set the original client secret. | ||
PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
DRUPAL_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.cms.amazeelabs.dev" | ||
DRUPAL_URL="https://nginx.${LAGOON_ENVIRONMENT}.${LAGOON_PROJECT}.ch4.amazee.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DRUPAL_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.cms.amazeelabs.dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DRUPAL_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.cms.amazeelabs.dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DRUPAL_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.cms.amazeelabs.dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
PROJECT_NAME=example | ||
DRUPAL_INTERNAL_URL="http://nginx:8080" | ||
DRUPAL_EXTERNAL_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.cms.amazeelabs.dev" | ||
NETLIFY_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.amazeelabs.dev" | ||
|
||
# ----------------------------------------------- | ||
# 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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
PROJECT_NAME=example | ||
DRUPAL_INTERNAL_URL="http://nginx:8080" | ||
DRUPAL_EXTERNAL_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.cms.amazeelabs.dev" | ||
NETLIFY_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.amazeelabs.dev" | ||
|
||
# ----------------------------------------------- | ||
# 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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
PROJECT_NAME=example | ||
DRUPAL_INTERNAL_URL="http://nginx:8080" | ||
DRUPAL_EXTERNAL_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.cms.amazeelabs.dev" | ||
NETLIFY_URL="https://${LAGOON_GIT_BRANCH}-${PROJECT_NAME}.amazeelabs.dev" | ||
|
||
# ----------------------------------------------- | ||
# 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}" |