-
Notifications
You must be signed in to change notification settings - Fork 60
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
Access Control for Starter Site #349
base: development
Are you sure you want to change the base?
Access Control for Starter Site #349
Conversation
Enable Delegate script for Cantaloupe
Makefile
Outdated
@@ -183,7 +184,7 @@ starter_dev: QUOTED_CURDIR = "$(CURDIR)" | |||
starter_dev: generate-secrets | |||
$(MAKE) starter-init ENVIRONMENT=starter_dev | |||
if [ -z "$$(ls -A $(QUOTED_CURDIR)/codebase)" ]; then \ | |||
docker container run --rm -v $(CURDIR)/codebase:/home/root $(REPOSITORY)/nginx:$(TAG) with-contenv bash -lc 'git clone -b main https://github.com/Islandora-Devops/islandora-starter-site /home/root;'; \ | |||
docker container run --rm -v $(CURDIR)/codebase:/home/root $(REPOSITORY)/nginx:$(TAG) with-contenv bash -lc 'git clone -b islandora_group https://github.com/kylehuynh205/islandora-starter-site.git /home/root;'; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get that this is how to get it running, but we are not helped by committing feature branches into our toolchain!
Makefile
Outdated
@@ -160,7 +160,8 @@ local: generate-secrets | |||
curl -k -u admin:'$(shell cat secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD)' -H "Content-Type: application/json" -d "@build/demo-data/homepage.json" https://${DOMAIN}/node?_format=json | |||
curl -k -u admin:'$(shell cat secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD)' -H "Content-Type: application/json" -d "@build/demo-data/browse-collections.json" https://${DOMAIN}/node?_format=json | |||
$(MAKE) login | |||
|
|||
# make private file directory | |||
docker-compose exec -T drupal mkdir -p $(CURDIR)/codebase/web/sites/default/private_files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best practice is to create a directory outside of the web root. Otherwise (unless you take careful explicit steps to protect it) all the files will be directly accessible over the internet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it out to outside web directory kylehuynh205/islandora-starter-site@7672e77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Where is the command that creates the private_files directory?
Add steps to create private file directory
Enable Delegate script for Cantaloupe