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
37 changes: 36 additions & 1 deletion .docker/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,42 @@ server {
return 404;
}

location ~ '\.php$|^/update.php' {
# 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;
}

location ~* /sites/[^/]+/files/(css|js)/ {
try_files $uri =404;
}

# 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
6 changes: 4 additions & 2 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 2

- name: Git fetch
run: git fetch

- name: Check that changelog has been updated.
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0
env:
BASE_REF: ${{ github.base_ref }}
run: git diff --exit-code "origin/$BASE_REF" -- CHANGELOG.md && exit 1 || exit 0
6 changes: 3 additions & 3 deletions .github/workflows/composer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
composer-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Create docker network
run: |
Expand All @@ -56,7 +56,7 @@ jobs:
composer-normalized:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Create docker network
run: |
Expand All @@ -69,7 +69,7 @@ jobs:
composer-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Create docker network
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm prettier 'web/**/custom/**/js/**/*.js' --check
docker compose run --rm prettier --no-editorconfig 'web/**/custom/**/js/**/*.js' --check
2 changes: 1 addition & 1 deletion .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Create docker network
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
name: PHP - Check Coding Standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Create docker network
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
name: Check that site can be installed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Create docker network
run: |
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Install site from our base ref
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
ref: ${{ github.base_ref }}

Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
sudo chmod -Rv a+w web/sites/default || true

# Update site using our updated code.
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
# Keep our local settings (cf.
# https://github.com/actions/checkout?tab=readme-ov-file#usage)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/styles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm prettier 'web/profiles/custom/os2loop/themes/os2loop_theme/assets/**/*.{css,scss}' --check
docker compose run --rm prettier --no-editorconfig 'web/profiles/custom/os2loop/themes/os2loop_theme/assets/**/*.{css,scss}' --check
2 changes: 1 addition & 1 deletion .github/workflows/twig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Create docker network
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm prettier '**/*.{yml,yaml}' --check
docker compose run --rm prettier --no-editorconfig '**/*.{yml,yaml}' --check
2 changes: 2 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
vendor/
node_modules/
LICENSE.md
# Python
.venv/
# Drupal
web/*.md
web/core/
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.5.4] - 2026-11-30

- Updated Drupal core to 11.4.14 (security update).
- Updated the symfony/* packages (components to 7.4.22-7.4.25), twig/twig 3.31.1,
twig/html-extra 3.31.1 and league/csv 9.30.0 (security updates).
- Updated the itkdev-docker templates. nginx blocks the Drupal maintenance
scripts and sends only valid CSS and JS aggregate names to PHP.

## [1.5.3] - 2026-11-19

- [PR-412](https://github.com/itk-dev/os2loop/pull/412)
Expand Down Expand Up @@ -202,7 +210,9 @@ tab
- [LOOP-2056](https://leantime.itkdev.dk/dashboard/home#/tickets/showTicket/2056):
Create new frontpage with fixtures.

[Unreleased]: https://github.com/itk-dev/os2loop/compare/1.5.2...HEAD
[Unreleased]: https://github.com/itk-dev/os2loop/compare/1.5.4...HEAD
[1.5.4]: https://github.com/itk-dev/os2loop/compare/1.5.3...1.5.4
[1.5.3]: https://github.com/itk-dev/os2loop/compare/1.5.2...1.5.3
[1.5.2]: https://github.com/itk-dev/os2loop/compare/1.5.1...1.5.2
[1.5.1]: https://github.com/itk-dev/os2loop/compare/1.5.0...1.5.1
[1.5.0]: https://github.com/itk-dev/os2loop/compare/1.4.3...1.5.0
Expand Down
Loading
Loading