Skip to content

Conversation

kylehuynh205
Copy link

Add steps to create private file directory
Enable Delegate script for Cantaloupe

Enable Delegate script for Cantaloupe
@kylehuynh205 kylehuynh205 changed the title Access Control Access Control for Starter Site Jul 6, 2023
Makefile Outdated
$(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;'; \
Copy link
Contributor

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
$(MAKE) login

# make private file directory
docker-compose exec -T drupal mkdir -p $(CURDIR)/codebase/web/sites/default/private_files
Copy link
Contributor

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.

Copy link
Author

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

Copy link
Contributor

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?

Copy link

This PR is being marked as stale from inactivity and will be automatically closed in 90 days unless further action is taken. If this PR is still relevant please comment. Please also consider attending the weekly Tech Call to discuss the PR

@github-actions github-actions bot added the Stale label Jun 12, 2025
@github-actions github-actions bot closed this Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants