Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .lagoon.env environment files. #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .lagoon.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Shield credentials.
DRUPAL_SHIELD_USER=
DRUPAL_SHIELD_PASS=
3 changes: 3 additions & 0 deletions .lagoon.env.master
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Shield credentials.
DRUPAL_SHIELD_USER=
DRUPAL_SHIELD_PASS=
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
gem install pygmy
pygmy up

* [Windows](https://docs.amazee.io/local_docker_development/windows.html):
* [Windows](https://docs.amazee.io/local_docker_development/windows.html):

git clone https://github.com/amazeeio/amazeeio-docker-windows amazeeio-docker-windows; cd amazeeio-docker-windows
docker-compose up -d; cd ..
Expand Down Expand Up @@ -78,3 +78,14 @@ This project is designed to provision a Drupal 7 project onto GovCMS SaaS, using
1. The vanilla GovCMS (7.x-3.x) Distribution is available at [Github Source](https://github.com/govcms/govcms) and as [Public DockerHub images](https://hub.docker.com/r/govcms)
2. Those GovCMS images are then customised for Lagoon and GovCMS, and are available at [Github Source](https://github.com/govcms/govcmslagoon) and as [Public DockerHub images](https://hub.docker.com/r/govcmslagoon)
3. Those GovCMSlagoon images are then retrieved in this scaffold repository.

## Shield

The `settings.php` file has environment variable support to configure basic authentication.

### Updating passwords

- `.lagoon.env`: Will have the default password for all Lagoon environments.
- `.lagoon.env.master`: Allows a password to be added specifically for the production environment.

> Note empty values will result in shield being disabled.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ x-environment:
LAGOON_PROJECT: *lagoon-project
LAGOON_ROUTE: &default-url ${LOCALDEV_URL:-http://govcms7-scaffold.docker.amazee.io}
X_FRAME_OPTIONS: ${X_FRAME_OPTIONS:-SameOrigin}
DRUPAL_SHIELD_USER: ${DRUPAL_SHIELD_USER:-}
DRUPAL_SHIELD_PASS: ${DRUPAL_SHIELD_PASS:-}

services:

Expand Down