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

## Open PR's

- [PR-168](https://github.com/itk-dev/devops_itkdev-docker/pull/168) - 2026-11-29 -
Send only valid Drupal aggregate names to PHP.
- [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 All @@ -23,6 +21,8 @@ Changelog", this file is a reverse-chronological list of merged pull requests.

### 2026

- [PR-168](https://github.com/itk-dev/devops_itkdev-docker/pull/168) - 2026-11-29 -
Send only valid Drupal aggregate names to PHP.
- [PR-167](https://github.com/itk-dev/devops_itkdev-docker/pull/167) - 2026-11-26 -
Block web access to Drupal's maintenance scripts.
- [PR-166](https://github.com/itk-dev/devops_itkdev-docker/pull/166)
Expand Down
9 changes: 9 additions & 0 deletions templates/drupal-8/.docker/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ server {
return 404;
}

# Drupal builds a missing CSS or JS aggregate on each request. Send only
# file names with a valid hash (43 characters) to Drupal. Return 404 for
# other names, for example "css_x.css" in a cache-busting flood.
# Keep these rules after the deny rules above. Nginx uses the first regex
# location that matches.
location ~ "^/sites/[^/]+/files/(css/css_[A-Za-z0-9_-]{43}\.css|js/js_[A-Za-z0-9_-]{43}\.js)$" {
try_files $uri /index.php?$query_string;
}

# 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 {
Expand Down
9 changes: 9 additions & 0 deletions templates/drupal-9/.docker/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ server {
return 404;
}

# Drupal builds a missing CSS or JS aggregate on each request. Send only
# file names with a valid hash (43 characters) to Drupal. Return 404 for
# other names, for example "css_x.css" in a cache-busting flood.
# Keep these rules after the deny rules above. Nginx uses the first regex
# location that matches.
location ~ "^/sites/[^/]+/files/(css/css_[A-Za-z0-9_-]{43}\.css|js/js_[A-Za-z0-9_-]{43}\.js)$" {
try_files $uri /index.php?$query_string;
}

# 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 {
Expand Down