Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat: Varnish fixes and Redirect 404. (#1268)
Browse files Browse the repository at this point in the history
* chore(deps): bump socket.io-parser and socket.io

Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) and [socket.io](https://github.com/socketio/socket.io). These dependencies needed to be updated together.

Updates `socket.io-parser` from 4.2.2 to 4.2.3
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](socketio/socket.io-parser@4.2.2...4.2.3)

Updates `socket.io` from 4.5.1 to 4.6.1
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](socketio/socket.io@4.5.1...4.6.1)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
- dependency-name: socket.io
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: pin composer version till preserve-paths package is updated

Refs: updates

* fix: pin composer version in dockerfile too

Refs: updates

* chore: Update all outdated drupal/* packages.

* chore: Port tests to GHA (#1259)

* chore: Ensure the composer action uses the new *variables* instead of secrets.

* chore: Drop in a modified tests GHA that runs what the old Travis one did. Not much.

Refs: OPS-7509

* chore: Ensure the tests can build the docker image, so they can run phpcs.

Refs: OPS-7509

* chore: Drop travis yaml.

Refs: OPS-7509

* fix: Look for code in the Drupal 7 locations.

* fix: Do what we used to do and cross fingers.

* Update .github/workflows/run-tests.yml

* Delete default.services.yml

* Update .github/workflows/run-tests.yml

* feat: Do not redirect archive.org to RW Response (#1261)

* feat: Ensure user-agents with "archive" skip all redirects to RW Response pages.

Refs: OPS-9290

* chore: Treat the archive.org bot as if it were a human, so a higher permitted rate.

It has its own varnish cache entry, which should help a bit. This will allow faster crawling, so we may get an achived up before 2024.

Refs: OPS-9290

* fix: Ensure Drupal and varnish do not cache the special-case generated content and just redirect as usual for visitors not archive.org. And optimise the function a bit with an early return. (#1264)

Refs: OPS-9290

* fix: phpcbf sorting

Refs: OPS-9379

* feat: Add Redirect 404 module to redirect to RW Response on page not found. (#1266)

This is to help people migrate off HR.info.

Refs: OPS-9382

* chore: Configure and enable redirect_404. (#1267)

* chore: Configure and enable redirect_404.

Refs: OPS-9382

* chore: Drop oin a custom rule that makes *nginx* redirect to the Response 404 page if a document cannot be found.

Refs: OPS-9382

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andy Footner <[email protected]>
Co-authored-by: unocha-jenkins <[email protected]>
  • Loading branch information
4 people authored Jun 21, 2023
1 parent 4fa6dda commit 4a6fa00
Show file tree
Hide file tree
Showing 20 changed files with 472 additions and 22 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
"drupal/readonlymode": "^1.2",
"drupal/realname": "^1.4",
"drupal/redirect": "1.0-rc4",
"drupal/redirect_404": "^1.1",
"drupal/registry_autoload": "^1.3",
"drupal/registry_rebuild": "^2.5",
"drupal/restclient": "^2.0",
Expand Down
46 changes: 45 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ COPY --from=builder /srv/www/vendor /srv/www/vendor
COPY --from=builder /srv/www/composer.json /srv/www/composer.json
COPY --from=builder /srv/www/composer.lock /srv/www/composer.lock
COPY --from=builder /srv/www/composer.patches.json /srv/www/composer.patches.json
COPY --from=builder /srv/www/docker/drupal.conf /etc/nginx/apps/drupal/drupal.conf
COPY --from=builder /srv/www/docker/fastcgi_drupal.conf /etc/nginx/apps/drupal/fastcgi_drupal.conf
COPY --from=builder /srv/www/docker/custom /etc/nginx/custom
COPY --from=builder /srv/www/docker/ratelimit.conf.template /etc/nginx/ratelimit.conf.template
Expand Down
Loading

0 comments on commit 4a6fa00

Please sign in to comment.