Skip to content
Merged
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Changelog", this file is a reverse-chronological list of merged pull requests.

## Open PR's

- [PR-167](https://github.com/itk-dev/devops_itkdev-docker/pull/167) - 2026-11-26 -
Block web access to Drupal's maintenance scripts.
- [PR-135](https://github.com/itk-dev/devops_itkdev-docker/pull/135) - 2026-01-29 -
Add Podman support with dynamic machine detection
- [PR-126](https://github.com/itk-dev/devops_itkdev-docker/pull/126) - 2026-01-05 -
Expand Down
24 changes: 23 additions & 1 deletion templates/drupal-8/.docker/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,29 @@ server {
return 404;
}

location ~ '\.php$|^/update.php' {
# Block web access to Drupal's maintenance scripts (update, install, cache
# rebuild, and authorize). Use drush and composer for these tasks instead.
location ^~ /update.php {
return 404;
}

location ^~ /install.php {
return 404;
}

location ^~ /core/install.php {
return 404;
}

location ^~ /core/rebuild.php {
return 404;
}

location ^~ /core/authorize.php {
return 404;
}

location ~ '\.php$' {
include fastcgi_params;

fastcgi_buffers 16 32k;
Expand Down
24 changes: 23 additions & 1 deletion templates/drupal-9/.docker/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,29 @@ server {
return 404;
}

location ~ '\.php$|^/update.php' {
# Block web access to Drupal's maintenance scripts (update, install, cache
# rebuild, and authorize). Use drush and composer for these tasks instead.
location ^~ /update.php {
return 404;
}

location ^~ /install.php {
return 404;
}

location ^~ /core/install.php {
return 404;
}

location ^~ /core/rebuild.php {
return 404;
}

location ^~ /core/authorize.php {
return 404;
}

location ~ '\.php$' {
include fastcgi_params;

fastcgi_buffers 16 32k;
Expand Down
24 changes: 23 additions & 1 deletion templates/drupal/.docker/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,29 @@ server {
return 404;
}

location ~ '\.php$|^/update.php' {
# Block web access to Drupal's maintenance scripts (update, install, cache
# rebuild, and authorize). Use drush and composer for these tasks instead.
location ^~ /update.php {
return 404;
}

location ^~ /install.php {
return 404;
}

location ^~ /core/install.php {
return 404;
}

location ^~ /core/rebuild.php {
return 404;
}

location ^~ /core/authorize.php {
return 404;
}

location ~ '\.php$' {
include fastcgi_params;

fastcgi_buffers 16 32k;
Expand Down