From 21b6cd932686c69476624e3e10ec3d5947941091 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 29 Nov 2024 00:06:54 +0000 Subject: [PATCH] Move my static sites to the new server --- nix/hosts/hetznix/configuration.nix | 10 +- nix/hosts/hetznix/modules/acme.nix | 26 ++ nix/hosts/hetznix/modules/nginx/default.nix | 22 + .../vhosts}/2020.oliverdavies.uk.nix | 2 +- ...ootstrap-with-tailwind.oliverdavies.uk.nix | 10 + ...rupalcamp-tailwind-css.oliverdavies.uk.nix | 10 + .../phpsw-sculpin-demo.oliverdavies.uk.nix | 10 + .../rebuilding-acquia.oliverdavies.uk.nix | 10 + .../rebuilding-bartik.oliverdavies.uk.nix | 10 + .../rebuilding-bristol-js.oliverdavies.uk.nix | 10 + .../rebuilding-symfony.oliverdavies.uk.nix | 10 + .../tailwindcss-demo.oliverdavies.uk.nix | 10 + ...ing-drupal-tailwindcss.oliverdavies.uk.nix | 10 + .../vhosts/wp-tailwind.oliverdavies.uk.nix | 10 + .../nginx/vhosts/www.oliverdavies.uk.nix | 435 ++++++++++++++++++ .../nginx/vhosts/zet.oliverdavies.uk.nix | 7 + 16 files changed, 593 insertions(+), 9 deletions(-) create mode 100644 nix/hosts/hetznix/modules/acme.nix create mode 100644 nix/hosts/hetznix/modules/nginx/default.nix rename nix/hosts/hetznix/modules/{ => nginx/vhosts}/2020.oliverdavies.uk.nix (85%) create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/bootstrap-with-tailwind.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/florida-drupalcamp-tailwind-css.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/phpsw-sculpin-demo.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-acquia.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bartik.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bristol-js.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-symfony.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/tailwindcss-demo.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/talking-drupal-tailwindcss.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/wp-tailwind.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/www.oliverdavies.uk.nix create mode 100644 nix/hosts/hetznix/modules/nginx/vhosts/zet.oliverdavies.uk.nix diff --git a/nix/hosts/hetznix/configuration.nix b/nix/hosts/hetznix/configuration.nix index 82fe7e0..081c585 100644 --- a/nix/hosts/hetznix/configuration.nix +++ b/nix/hosts/hetznix/configuration.nix @@ -12,16 +12,10 @@ ./disks.nix ./hardware-configuration.nix - ./modules/2020.oliverdavies.uk.nix + ./modules/acme.nix + ./modules/nginx ]; - security.acme = { - acceptTerms = true; - defaults.email = "oliver@oliverdavies.uk"; - }; - - services.nginx.enable = true; - networking.firewall.allowedTCPPorts = [ 80 443 diff --git a/nix/hosts/hetznix/modules/acme.nix b/nix/hosts/hetznix/modules/acme.nix new file mode 100644 index 0000000..837e401 --- /dev/null +++ b/nix/hosts/hetznix/modules/acme.nix @@ -0,0 +1,26 @@ +{ + security.acme = { + acceptTerms = true; + defaults.email = "oliver@oliverdavies.uk"; + + certs."oliverdavies.uk" = { + domain = "oliverdavies.uk"; + extraDomainNames = [ + # TODO Refactor to use a wildcard certificate. + "2020.oliverdavies.uk" + "bootstrap-with-tailwind.oliverdavies.uk" + "florida-drupalcamp-tailwind-css.oliverdavies.uk" + "phpsw-sculpin-demo.oliverdavies.uk" + "rebuilding-acquia.oliverdavies.uk" + "rebuilding-bartik.oliverdavies.uk" + "rebuilding-bristol-js.oliverdavies.uk" + "rebuilding-symfony.oliverdavies.uk" + "tailwindcss-demo.oliverdavies.uk" + "talking-drupal-tailwindcss.oliverdavies.uk" + "wp-tailwind.oliverdavies.uk" + "www.oliverdavies.uk" + "zet.oliverdavies.uk" + ]; + }; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/default.nix b/nix/hosts/hetznix/modules/nginx/default.nix new file mode 100644 index 0000000..0c19d6c --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/default.nix @@ -0,0 +1,22 @@ +{ + services.nginx = { + enable = true; + serverNamesHashBucketSize = 256; + }; + + imports = [ + ./vhosts/2020.oliverdavies.uk.nix + ./vhosts/bootstrap-with-tailwind.oliverdavies.uk.nix + ./vhosts/florida-drupalcamp-tailwind-css.oliverdavies.uk.nix + ./vhosts/phpsw-sculpin-demo.oliverdavies.uk.nix + ./vhosts/rebuilding-acquia.oliverdavies.uk.nix + ./vhosts/rebuilding-bartik.oliverdavies.uk.nix + ./vhosts/rebuilding-bristol-js.oliverdavies.uk.nix + ./vhosts/rebuilding-symfony.oliverdavies.uk.nix + ./vhosts/tailwindcss-demo.oliverdavies.uk.nix + ./vhosts/talking-drupal-tailwindcss.oliverdavies.uk.nix + ./vhosts/wp-tailwind.oliverdavies.uk.nix + ./vhosts/www.oliverdavies.uk.nix + ./vhosts/zet.oliverdavies.uk.nix + ]; +} diff --git a/nix/hosts/hetznix/modules/2020.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/2020.oliverdavies.uk.nix similarity index 85% rename from nix/hosts/hetznix/modules/2020.oliverdavies.uk.nix rename to nix/hosts/hetznix/modules/nginx/vhosts/2020.oliverdavies.uk.nix index 76db6e9..1791fb9 100644 --- a/nix/hosts/hetznix/modules/2020.oliverdavies.uk.nix +++ b/nix/hosts/hetznix/modules/nginx/vhosts/2020.oliverdavies.uk.nix @@ -1,6 +1,6 @@ { services.nginx.virtualHosts."2020.oliverdavies.uk" = { - enableACME = true; + useACMEHost = "oliverdavies.uk"; forceSSL = true; root = "/var/www/vhosts/2020.oliverdavies.uk"; extraConfig = '' diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/bootstrap-with-tailwind.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/bootstrap-with-tailwind.oliverdavies.uk.nix new file mode 100644 index 0000000..2450eea --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/bootstrap-with-tailwind.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."bootstrap-with-tailwind.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/bootstrap-with-tailwind.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/florida-drupalcamp-tailwind-css.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/florida-drupalcamp-tailwind-css.oliverdavies.uk.nix new file mode 100644 index 0000000..8019d22 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/florida-drupalcamp-tailwind-css.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."florida-drupalcamp-tailwind-css.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/florida-drupalcamp-tailwind-css.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/phpsw-sculpin-demo.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/phpsw-sculpin-demo.oliverdavies.uk.nix new file mode 100644 index 0000000..6f6142f --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/phpsw-sculpin-demo.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."phpsw-sculpin-demo.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/phpsw-sculpin-demo.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-acquia.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-acquia.oliverdavies.uk.nix new file mode 100644 index 0000000..02a1a94 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-acquia.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."rebuilding-acquia.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/rebuilding-acquia.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bartik.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bartik.oliverdavies.uk.nix new file mode 100644 index 0000000..ef70c12 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bartik.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."rebuilding-bartik.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/rebuilding-bartik.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bristol-js.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bristol-js.oliverdavies.uk.nix new file mode 100644 index 0000000..3b9851c --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-bristol-js.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."rebuilding-bristol-js.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/rebuilding-bristol-js.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-symfony.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-symfony.oliverdavies.uk.nix new file mode 100644 index 0000000..945f2ac --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/rebuilding-symfony.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."rebuilding-symfony.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/rebuilding-symfony.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/tailwindcss-demo.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/tailwindcss-demo.oliverdavies.uk.nix new file mode 100644 index 0000000..8251372 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/tailwindcss-demo.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."tailwindcss-demo.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/tailwindcss-demo.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/talking-drupal-tailwindcss.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/talking-drupal-tailwindcss.oliverdavies.uk.nix new file mode 100644 index 0000000..1f550f5 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/talking-drupal-tailwindcss.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."talking-drupal-tailwindcss.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/talking-drupal-tailwindcss.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/wp-tailwind.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/wp-tailwind.oliverdavies.uk.nix new file mode 100644 index 0000000..0bf4711 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/wp-tailwind.oliverdavies.uk.nix @@ -0,0 +1,10 @@ +{ + services.nginx.virtualHosts."wp-tailwind.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/wp-tailwind.oliverdavies.uk"; + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/www.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/www.oliverdavies.uk.nix new file mode 100644 index 0000000..df32f4f --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/www.oliverdavies.uk.nix @@ -0,0 +1,435 @@ +{ + services.nginx.virtualHosts = { + "www.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/www.oliverdavies.uk/output_prod"; + extraConfig = '' + error_page 404 /404; + + # rewrite ^/archive/(.*)/?$ /daily/$1 permanent; + rewrite ^/10-useful-drupal-6-modules-i-use-every-project/?$ /blog/10-useful-drupal-6-modules permanent; + rewrite ^/2010/04/05/styling-drupal-6s-taxonomy-lists-with-php-css-and-jquery/?$ /blog/style-drupal-6s-taxonomy-lists-php-css-jquery permanent; + rewrite ^/2010/04/28/using-imagecache-and-imagecrop-for-my-portfolio/?$ /blog/using-imagecache-imagecrop-my-portfolio permanent; + rewrite ^/2010/05/29/importing-images-using-the-imagefieldimport-module/?$ /blog/quickly-import-multiples-images-using-imagefieldimport-module permanent; + rewrite ^/2010/06/23/creating-a-block-of-social-media-icons-using-cck-views-and-nodequeue/?$ /blog/create-block-social-media-icons-using-cck-views-nodequeue permanent; + rewrite ^/2010/07/05/thanks/?$ /blog/thanks permanent; + rewrite ^/2010/08/17/create-a-better-photo-gallery-in-drupal-part-2/?$ /blog/create-better-photo-gallery-drupal-part-2 permanent; + rewrite ^/2014/05/21/git-format-patch/?$ /blog/git-format-patch-your-friend permanent; + rewrite ^/2PxmyqP/?$ /articles/examples-of-laravel-collections-in-drupal permanent; + rewrite ^/39CoG/?$ /articles/drupalcamp-london-testing-workshop permanent; + rewrite ^/3eGQr/?$ https://github.com/howToCodeWell/howToCodeWellFM/blob/c927e0b3589f1d7375002f7fd70f0bfc9fc90449/composer.json#L17 permanent; + rewrite ^/6UhLN/?$ https://github.com/opdavies/sculpin-twig-markdown-bundle/pull/1 permanent; + rewrite ^/6i3YZ/?$ https://www.youtube.com/watch?v=vUK5sEbd-dk permanent; + rewrite ^/9rv0Z/?$ https://www.drupal.org/project/override_node_options/issues/3109852 permanent; + rewrite ^/BhMZi/?$ https://git.drupalcode.org/search?utf8=%E2%9C%93&snippets=&scope=&repository_ref=8.x-1.x&search=baz&project_id=23203 permanent; + rewrite ^/NBi5h/?$ https://git.drupalcode.org/search?utf8=%E2%9C%93&search=bar&group_id=&project_id=23203&search_code=true&repository_ref=8.x-1.x&nav_source=navbar permanent; + rewrite ^/P5KQ5/?$ https://www.npmjs.com/package/tailwindcss-skip-link permanent; + rewrite ^/S8ZDA/?$ /articles/rebuilding-bartik-with-vuejs-tailwind-css-part-2 permanent; + rewrite ^/Wh48P/?$ https://github.com/opdavies/oliverdavies.uk/blob/master/source/_partials/talk/video.html.twig permanent; + rewrite ^/XbzS2/?$ https://github.com/opdavies/gmail-filter-builder permanent; + rewrite ^/YK1VH/?$ /articles/psr4-autoloading-test-cases-drupal-7 permanent; + rewrite ^/YilTZ$ https://drupalcamp.london/tickets/training permanent; + rewrite ^/about/?$ / permanent; + rewrite ^/about/cv/?$ /cv permanent; + rewrite ^/about/speaker-information/?$ /speaker-information permanent; + rewrite ^/about/speaker/?$ /speaker permanent; + rewrite ^/acquia-certifications/?$ https://certification.acquia.com/registry?fname=Oliver&lname=Davies&city=&state=&country=United+Kingdom&org=&exam=All permanent; + rewrite ^/acquia-certified/?$ https://certification.acquia.com/?fname=Oliver&lname=Davies permanent; + rewrite ^/ansible-molecule/?$ /articles/test-driven-ansible-role-development-molecule permanent; + rewrite ^/ansible/?$ https://galaxy.ansible.com/opdavies permanent; + rewrite ^/ansistrano-code/?$ https://github.com/opdavies/dransible permanent; + rewrite ^/ansistrano-demo/?$ https://www.youtube.com/watch?v=PLS4ET7FAcU permanent; + rewrite ^/ansistrano-slides/?$ /talks/deploying-php-ansible-ansistrano permanent; + rewrite ^/archive/2022/10/20/run-vs-task-runners/? /archive/2022/10/19/run-vs-task-runners permanent; + rewrite ^/articles/(.*)/?$ /blog/$1 permanent; + rewrite ^/atNOQ/?$ https://youtu.be/r41dkD2EOo8 permanent; + rewrite ^/automatically-updating-talk-created-date/?$ https://gist.github.com/opdavies/4e75e1753d8603113f07f8264bb783d6 permanent; + rewrite ^/blog.xml/?$ /rss.xml permanent; + rewrite ^/blog/10-useful-drupal-6-modules/?$ /blog/useful-drupal-6-modules permanent; + rewrite ^/blog/10-years-working-full-time-drupal/?$ /blog/10-years-working-full-time-drupal-php permanent; + rewrite ^/blog/2010/04/05/style-drupal-6s-taxonomy-lists-php-css-and-jquery/?$ /blog/style-drupal-6s-taxonomy-lists-php-css-and-jquery permanent; + rewrite ^/blog/2010/04/05/styling-drupal-6s-taxonomy-lists-with-php-css-and-jquery/?$ /blog/style-drupal-6s-taxonomy-lists-php-css-jquery permanent; + rewrite ^/blog/2010/04/28/using-imagecache-and-imagecrop-my-portfolio/?$ /blog/using-imagecache-and-imagecrop-my-portfolio permanent; + rewrite ^/blog/2010/05/06/conditional-email-addresses-webform/?$ /blog/conditional-email-addresses-webform permanent; + rewrite ^/blog/2010/05/10/quickly-create-zen-subthemes-using-zenophile/?$ /blog/quickly-create-zen-subthemes-using-zenophile permanent; + rewrite ^/blog/2010/05/25/create-slideshow-multiple-images-using-fancy-slide/?$ /blog/create-slideshow-multiple-images-using-fancy-slide permanent; + rewrite ^/blog/2010/05/29/quickly-import-multiples-images-using-imagefieldimport-module/?$ /blog/quickly-import-multiples-images-using-imagefieldimport-module permanent; + rewrite ^/blog/2010/06/02/improve-jpg-quality-imagecache-and-imageapi/?$ /blog/improve-jpg-quality-imagecache-and-imageapi permanent; + rewrite ^/blog/2010/06/23/create-block-social-media-icons-using-cck-views-and-nodequeue/?$ /blog/create-block-social-media-icons-using-cck-views-and-nodequeue permanent; + rewrite ^/blog/2010/06/25/10-useful-drupal-6-modules/?$ /blog/10-useful-drupal-6-modules permanent; + rewrite ^/blog/2010/06/28/create-flickr-photo-gallery-using-feeds-cck-and-views/?$ /blog/create-flickr-photo-gallery-using-feeds-cck-and-views permanent; + rewrite ^/blog/2010/07/01/change-content-type-multiple-nodes-using-sql/?$ /blog/change-content-type-multiple-nodes-using-sql permanent; + rewrite ^/blog/2010/07/02/create-virtual-hosts-mac-os-x-using-virtualhostx/?$ /blog/create-virtual-hosts-mac-os-x-using-virtualhostx permanent; + rewrite ^/blog/2010/07/07/add-taxonomy-term-multiple-nodes-using-sql/?$ /blog/add-taxonomy-term-multiple-nodes-using-sql permanent; + rewrite ^/blog/2010/07/07/quickly-adding-taxonomy-term-multiple-nodes-using-sql/?$ /blog/add-taxonomy-term-multiple-nodes-using-sql permanent; + rewrite ^/blog/2010/07/12/overview-teleport-module/?$ /blog/review-teleport-module permanent; + rewrite ^/blog/2010/07/12/review-teleport-module/?$ /blog/review-teleport-module permanent; + rewrite ^/blog/2010/08/10/review-adminhover-module/?$ /blog/review-adminhover-module permanent; + rewrite ^/blog/2010/08/11/create-better-photo-gallery-drupal-part-1/?$ /blog/create-better-photo-gallery-drupal-part-1 permanent; + rewrite ^/blog/2010/08/11/how-create-better-photo-gallery-drupal-part-1/?$ /blog/create-better-photo-gallery-drupal-part-1 permanent; + rewrite ^/blog/2010/08/17/create-better-photo-gallery-drupal-part-2/?$ /blog/create-better-photo-gallery-drupal-part-2 permanent; + rewrite ^/blog/2010/08/20/review-image-caption-module/?$ /blog/review-image-caption-module permanent; + rewrite ^/blog/2010/09/26/south-wales-drupal-user-group/?$ /blog/south-wales-drupal-user-group permanent; + rewrite ^/blog/2010/10/10/create-and-apply-patches/?$ /blog/create-and-apply-patches permanent; + rewrite ^/blog/2010/10/13/create-better-photo-gallery-drupal-part-3/?$ /blog/create-better-photo-gallery-drupal-part-3 permanent; + rewrite ^/blog/2010/10/22/create-better-photo-gallery-drupal-part-21/?$ /blog/create-better-photo-gallery-drupal-part-21 permanent; + rewrite ^/blog/2010/11/04/use-regular-expressions-search-and-replace-coda-or-textmate/?$ /blog/use-regular-expressions-search-and-replace-coda-or-textmate permanent; + rewrite ^/blog/2011/02/14/easily-embed-typekit-fonts-your-drupal-website/?$ /blog/easily-embed-typekit-fonts-your-drupal-website permanent; + rewrite ^/blog/2011/03/15/display-number-facebook-fans-php/?$ /blog/display-number-facebook-fans-php permanent; + rewrite ^/blog/2011/03/31/proctor-stevenson/?$ /blog/proctor-stevenson permanent; + rewrite ^/blog/2011/05/20/proctors-hosting-next-drupal-meetup/?$ /blog/proctors-hosting-next-drupal-meetup permanent; + rewrite ^/blog/2011/05/23/imagefield-import-archive/?$ /blog/imagefield-import-archive permanent; + rewrite ^/blog/2011/08/28/create-multigroups-drupal-7-using-field-collections/?$ /blog/create-multigroups-drupal-7-using-field-collections permanent; + rewrite ^/blog/2011/10/19/install-and-configure-subversion-svn-server-ubuntu/?$ /blog/install-and-configure-subversion-svn-server-ubuntu permanent; + rewrite ^/blog/2011/10/install-and-configure-subversion-svn-server-ubuntu/?$ /blog/how-install-configure-subversion-svn-server-ubuntu permanent; + rewrite ^/blog/2012/01/04/site-upgraded-drupal-7/?$ /blog/site-upgraded-drupal-7 permanent; + rewrite ^/blog/2012/02/01/use-authorize-keys-create-passwordless-ssh-connection/?$ /blog/use-authorized-keys-create-passwordless-ssh-connection permanent; + rewrite ^/blog/2012/04/16/create-omega-subtheme-less-css-preprocessor-using-omega-tools-and-drush/?$ /blog/create-omega-subtheme-less-css-preprocessor-using-omega-tools-and-drush permanent; + rewrite ^/blog/2012/04/17/installing-nagios-centos/?$ /blog/installing-nagios-centos permanent; + rewrite ^/blog/2012/04/19/adding-custom-theme-templates-drupal-7/?$ /blog/adding-custom-theme-templates-drupal-7 permanent; + rewrite ^/blog/2012/04/adding-custom-theme-templates-drupal-7/?$ /blog/adding-custom-theme-templates-drupal-7 permanent; + rewrite ^/blog/2012/05/23/add-date-popup-calendar-custom-form/?$ /blog/add-date-popup-calendar-custom-form permanent; + rewrite ^/blog/2012/05/23/checkout-specific-revision-svn-command-line/?$ /blog/checkout-specific-revision-svn-command-line permanent; + rewrite ^/blog/2012/05/23/forward-one-domain-another-using-mod-rewrite-and-htaccess/?$ /blog/forward-one-domain-another-using-mod-rewrite-and-htaccess permanent; + rewrite ^/blog/2012/05/23/forward-one-domain-another-using-modrewrite-and-htaccess/?$ /blog/forward-one-domain-another-using-modrewrite-htaccess permanent; + rewrite ^/blog/2012/05/23/prevent-apache-displaying-text-files-within-web-browser/?$ /blog/prevent-apache-displaying-text-files-within-web-browser permanent; + rewrite ^/blog/2012/05/23/writing-info-file-drupal-7-theme/?$ /blog/writing-info-file-drupal-7-theme permanent; + rewrite ^/blog/2012/05/24/dividing-drupals-process-and-preprocess-functions-separate-files/?$ /blog/dividing-drupals-process-and-preprocess-functions-separate-files permanent; + rewrite ^/blog/2012/05/forward-one-domain-another-using-modrewrite-and-htaccess/?$ /blog/forward-one-domain-another-using-modrewrite-htaccess permanent; + rewrite ^/blog/2012/07/12/my-new-drupal-modules/?$ /blog/my-new-drupal-modules permanent; + rewrite ^/blog/2012/07/14/install-nomensa-media-player-drupal/?$ /blog/install-nomensa-media-player-drupal permanent; + rewrite ^/blog/2012/07/27/writing-article-linux-journal/?$ /blog/writing-article-linux-journal permanent; + rewrite ^/blog/2012/07/install-and-configure-nomensa-accessible-media-player-drupal/?$ /blog/install-configure-nomensa-accessible-media-player-drupal permanent; + rewrite ^/blog/2012/07/nomensa-accessible-media-player-drupal/?$ /blog/install-configure-nomensa-accessible-media-player-drupal permanent; + rewrite ^/blog/2012/08/18/display-custom-menu-drupal-7-theme-template-file/?$ /blog/display-custom-menu-drupal-7-theme-template-file permanent; + rewrite ^/blog/2012/09/06/reflections-speaking-unifieddiff/?$ /blog/reflections-speaking-unifieddiff permanent; + rewrite ^/blog/2012/10/25/my-sublime-text-2-settings/?$ /blog/my-sublime-text-2-settings permanent; + rewrite ^/blog/2012/11/15/accessible-bristol-site-launched/?$ /blog/accessible-bristol-site-launched permanent; + rewrite ^/blog/2012/11/17/open-sublime-text-2-mac-os-x-command-line/?$ /blog/open-sublime-text-2-mac-os-x-command-line permanent; + rewrite ^/blog/2012/12/06/use-sass-and-compass-drupal-7-using-sassy/?$ /blog/use-sass-and-compass-drupal-7-using-sassy permanent; + rewrite ^/blog/2012/12/use-sass-and-compass-drupal-7-using-sassy/?$ /blog/use-sass-and-compass-drupal-7-using-sassy permanent; + rewrite ^/blog/2013/01/09/checking-if-user-logged-drupal-right-way/?$ /blog/checking-if-user-logged-drupal-right-way permanent; + rewrite ^/blog/2013/02/16/creating-and-using-custom-tokens-drupal-7/?$ /blog/creating-and-using-custom-tokens-drupal-7 permanent; + rewrite ^/blog/2013/02/creating-and-using-custom-tokens-drupal-7/?$ /blog/creating-using-custom-tokens-drupal-7 permanent; + rewrite ^/blog/2013/03/02/quickest-way-install-sublime-text-2-ubuntu/?$ /blog/quickest-way-install-sublime-text-2-ubuntu permanent; + rewrite ^/blog/2013/04/20/leaving-nomensa-joining-precedent/?$ /blog/leaving-nomensa-joining-precedent permanent; + rewrite ^/blog/2013/04/27/display-git-branch-or-tag-names-your-bash-prompt/?$ /blog/display-git-branch-or-tag-names-your-bash-prompt permanent; + rewrite ^/blog/2013/04/display-git-branch-or-tag-names-your-bash-prompt/?$ /blog/display-git-branch-or-tag-names-your-bash-prompt permanent; + rewrite ^/blog/2013/06/13/some-useful-links-using-simpletest-drupal/?$ /blog/some-useful-links-using-simpletest-drupal permanent; + rewrite ^/blog/2013/07/17/creating-local-and-staging-sites-drupals-domain-module-enabled/?$ /blog/creating-local-and-staging-sites-drupals-domain-module-enabled permanent; + rewrite ^/blog/2013/07/26/going-drupalcon/?$ /blog/going-drupalcon permanent; + rewrite ^/blog/2013/09/06/create-a-zen-sub-theme-using-drush/?$ /blog/create-a-zen-sub-theme-using-drush permanent; + rewrite ^/blog/2013/09/create-zen-sub-theme-using-drush/?$ /blog/create-zen-sub-theme-using-drush permanent; + rewrite ^/blog/2013/11/19/dont-bootstrap-drupal-use-drush/?$ /blog/dont-bootstrap-drupal-use-drush permanent; + rewrite ^/blog/2013/11/27/useful-vagrant-commands/?$ /blog/useful-vagrant-commands permanent; + rewrite ^/blog/2013/11/dont-bootstrap-drupal-use-drush/?$ /blog/dont-bootstrap-drupal-use-drush permanent; + rewrite ^/blog/2013/12/24/quickly-apply-patches-using-git-and-curl-or-wget/?$ /blog/quickly-apply-patches-using-git-and-curl-or-wget permanent; + rewrite ^/blog/2013/12/31/download-different-versions-drupal-drush/?$ /blog/download-different-versions-drupal-drush permanent; + rewrite ^/blog/2013/12/quickly-apply-patches-using-git-and-curl-or-wget /blog/quickly-apply-patches-using-git-curl-or-wget permanent; + rewrite ^/blog/2014/01/15/some-useful-git-aliases/?$ /blog/some-useful-git-aliases permanent; + rewrite ^/blog/2014/02/09/drupalcamp-london-2014/?$ /blog/drupalcamp-london-2014 permanent; + rewrite ^/blog/2014/03/03/what-git-flow/?$ /blog/what-git-flow permanent; + rewrite ^/blog/2014/05/03/drupal-association/?$ /blog/drupal-association permanent; + rewrite ^/blog/2014/05/06/thanks/?$ /blog/thanks permanent; + rewrite ^/blog/2014/05/21/git-format-patch/?$ /blog/git-format-patch permanent; + rewrite ^/blog/2014/07/02/drush-make-drupalbristol/?$ /blog/drush-make-drupalbristol permanent; + rewrite ^/blog/2014/10/06/fix-vagrant-loading-wrong-virtual-machine/?$ /blog/fix-vagrant-loading-wrong-virtual-machine permanent; + rewrite ^/blog/2014/10/21/updating-features-and-adding-components-using-drush/?$ /blog/updating-features-and-adding-components-using-drush permanent; + rewrite ^/blog/2014/11/18/include-css-fonts-using-sass-each-loop/?$ /blog/include-css-fonts-using-sass-each-loop permanent; + rewrite ^/blog/2014/11/20/using-remote-files-when-developing-locally-with-stage-file-proxy-module/?$ /blog/using-remote-files-when-developing-locally-with-stage-file-proxy-module permanent; + rewrite ^/blog/2014/11/27/pantheon-settings-files/?$ /blog/pantheon-settings-files permanent; + rewrite ^/blog/2014/12/20/include-local-drupal-settings-file-environment-configuration-and-overrides/?$ /blog/include-local-drupal-settings-file-environment-configuration-and-overrides permanent; + rewrite ^/blog/2015/04/03/how-to-define-a-minimum-drupal-core-version/?$ /blog/how-to-define-a-minimum-drupal-core-version permanent; + rewrite ^/blog/2015/06/18/updating-forked-repositories-on-github/?$ /blog/updating-forked-repositories-on-github permanent; + rewrite ^/blog/2015/07/19/sculpin-twig-resources/?$ /blog/sculpin-twig-resources permanent; + rewrite ^/blog/2015/07/21/automating-sculpin-jenkins/?$ /blog/automating-sculpin-jenkins permanent; + rewrite ^/blog/2015/12/22/programmatically-load-an-entityform-in-drupal-7/?$ /blog/programmatically-load-an-entityform-in-drupal-7 permanent; + rewrite ^/blog/2016/02/15/announcing-the-drupal-vm-generator/?$ /blog/announcing-the-drupal-vm-generator permanent; + rewrite ^/blog/2016/05/03/simplifying-drupal-migrations-with-xautoload/?$ /blog/simplifying-drupal-migrations-with-xautoload permanent; + rewrite ^/blog/2016/07/15/building-gmail-filters-with-php/?$ /blog/building-gmail-filters-with-php permanent; + rewrite ^/blog/2016/12/30/drupal-vm-generator-291-released/?$ /blog/drupal-vm-generator-291-released permanent; + rewrite ^/blog/2017/01/07/easier-sculpin-commands-with-composer-and-npm-scripts/?$ /blog/easier-sculpin-commands-with-composer-and-npm-scripts permanent; + rewrite ^/blog/2017/01/31/nginx-redirects-with-query-string-arguments/?$ /blog/nginx-redirects-with-query-string-arguments permanent; + rewrite ^/blog/2017/05/05/fixing-drupal-simpletest-docker/?$ /blog/2017/05/05/fixing-drupal-simpletest-issues-inside-docker-containers permanent; + rewrite ^/blog/2017/05/05/fixing-drupal-simpletest-issues-inside-docker-containers/?$ /blog/fixing-drupal-simpletest-issues-inside-docker-containers permanent; + rewrite ^/blog/2017/05/20/turning-drupal-module-into-feature/?$ /blog/turning-your-custom-drupal-module-feature permanent; + rewrite ^/blog/2017/06/09/introducing-the-drupal-meetups-twitterbot/?$ /blog/introducing-the-drupal-meetups-twitterbot permanent; + rewrite ^/blog/2017/07/13/publishing-sculpin-sites-with-github-pages/?$ /blog/publishing-sculpin-sites-github-pages permanent; + rewrite ^/blog/2017/11/07/tdd-test-driven-drupal/?$ /blog/tdd-test-driven-drupal permanent; + rewrite ^/blog/2017/11/07/writing-drupal-module-test-driven-development-tdd/?$ /blog/2017/11/07/tdd-test-driven-drupal permanent; + rewrite ^/blog/2018/01/30/drupalcamp-bristol-2018/?$ /blog/drupalcamp-bristol-2018 permanent; + rewrite ^/blog/2018/02/05/using-tailwind-css-in-your-drupal-theme/?$ /blog/using-tailwind-css-in-your-drupal-theme permanent; + rewrite ^/blog/2018/02/27/looking-forward-to-drupalcamp-london/?$ /blog/looking-forward-to-drupalcamp-london permanent; + rewrite ^/blog/2018/02/27/queuing-private-messages-in-drupal-8/?$ /blog/queuing-private-messages-in-drupal-8 permanent; + rewrite ^/blog/2018/02/28/building-the-new-phpsw-website/?$ /blog/building-the-new-phpsw-website permanent; + rewrite ^/blog/2018/03/02/yay-the-mediacurrent-contrib-half-hour-is-back/?$ /blog/yay-the-mediacurrent-contrib-half-hour-is-back permanent; + rewrite ^/blog/2018/03/04/tweets-from-drupalcamp-london/?$ /blog/tweets-from-drupalcamp-london permanent; + rewrite ^/blog/2018/04/23/back-to-the-future-git-diff-apply/?$ /blog/back-future-gits-diff-apply-commands permanent; + rewrite ^/blog/2018/05/06/creating-a-custom-phpunit-command-for-docksal/?$ /blog/creating-a-custom-phpunit-command-for-docksal permanent; + rewrite ^/blog/add-date-popup-calendar-custom-form/?$ /blog/how-add-date-popup-calendar-custom-form permanent; + rewrite ^/blog/adding-methods-decorating-entity-metadata-wrapper/?$ /blog/decorating-entity-metadata-wrapper-add-refactor-methods permanent; + rewrite ^/blog/announcing-drupal-vm-generator/?$ /blog/announcing-the-drupal-vm-generator permanent; + rewrite ^/blog/announcing-the-drupal-vm-config-generator/?$ /blog/announcing-the-drupal-vm-generator permanent; + rewrite ^/blog/back-to-the-future-git-diff-apply/?$ /blog/back-future-gits-diff-apply-commands permanent; + rewrite ^/blog/building-gmail-filters-in-php/?$ /blog/building-gmail-filters-php permanent; + rewrite ^/blog/building-new-phpsw-website/?$ /blog/building-the-new-phpsw-website permanent; + rewrite ^/blog/building-presentation-slides-reveal-js-tailwind-css/?$ /blog/building-presentation-slides-rst2pdf permanent; + rewrite ^/blog/building-speaker-leaderboard-php-south-wales-using-drupal-symfony/?$ /blog/building-speaker-leaderboard-php-south-wales-drupal-symfony permanent; + rewrite ^/blog/create-and-apply-patches/?$ /blog/how-create-apply-patches permanent; + rewrite ^/blog/create-flickr-photo-gallery-using-feeds-cck-and-views/?$ /blog/create-flickr-photo-gallery-using-feeds-cck-views permanent; + rewrite ^/blog/creating-and-using-custom-tokens-drupal-7/?$ /blog/creating-using-custom-tokens-drupal-7 permanent; + rewrite ^/blog/creating-custom-docksal-commands/?$ /blog/creating-custom-phpunit-command-docksal permanent; + rewrite ^/blog/debugging-drupal-commerce-promotions-illiminate-collections/?$ /blog/debugging-drupal-commerce-illuminate-collections permanent; + rewrite ^/blog/decorating-entity-metadata-wrapper-add-add-refactor-methods/?$ /blog/decorating-entity-metadata-wrapper-add-refactor-methods permanent; + rewrite ^/blog/dev-book-club-refactoring-chapter-1/?$ /blog/dev-book-club-notes-refactoring-chapter-1 permanent; + rewrite ^/blog/dividing-drupals-process-preprocess-functions-separate-files/?$ /blog/dividing-drupals-process-and-preprocess-functions-separate-files permanent; + rewrite ^/blog/drupal-8-commerce-fixing-no-such-customer-error-(on-)?checkout/?$ /blog/drupal-8-commerce-fixing-no-such-customer-error-checkout permanent; + rewrite ^/blog/drupal-vm-generator-291-released/?$ /blog/drupal-vm-generator-updates permanent; + rewrite ^/blog/drupalcamp-london-2019-tickets/?$ /blog/drupalcamp-london-2019-tickets-available-call-sessions permanent; + rewrite ^/blog/drush-make-drupalbristol/?$ /talks/drush-make-drupalbristol permanent; + rewrite ^/blog/easier-git-repository-cloning-with-insteadof/?$ /blog/easier-git-repository-cloning-insteadof permanent; + rewrite ^/blog/easier-sculpin-commands-with-composer-and-npm-scripts/?$ /blog/easier-sculpin-commands-composer-npm-scripts permanent; + rewrite ^/blog/editing-meetup-videos-kdenlive/?$ /blog/editing-meetup-videos-linux-kdenlive permanent; + rewrite ^/blog/examples-of-laravel-collections-in-drupal/?$ /blog/using-laravel-collections-drupal permanent; + rewrite ^/blog/experimenting-with-events-in-drupal-8/?$ /blog/experimenting-events-drupal-8 permanent; + rewrite ^/blog/fix-vagrant-loading-wrong-virtual-machine/?$ /blog/how-fix-vagrant-loading-wrong-virtual-machine permanent; + rewrite ^/blog/fixing-drupal-simpletest-docker/?$ /blog/fixing-drupal-simpletest-issues-inside-docker-containers permanent; + rewrite ^/blog/forward-one-domain-another-using-modrewrite-and-htaccess/?$ /blog/forward-one-domain-another-using-modrewrite-htaccess permanent; + rewrite ^/blog/forward-one-domain-another-using-modrewrite-and-htaccess/?$ /blog/forward-one-domain-another-using-modrewrite-htaccess permanent; + rewrite ^/blog/git-format-patch/?$ /blog/git-format-patch-your-friend permanent; + rewrite ^/blog/how-easily-embed-typekit-fonts-your-drupal-website/?$ /blog/easily-embed-typekit-fonts-your-drupal-website permanent; + rewrite ^/blog/how-split-new-drupal-contrib-project-within-another-repository/?$ /blog/splitting-new-drupal-project-from-repo permanent; + rewrite ^/blog/how-style-drupal-6s-taxonomy-lists-php-css-and-jquery/?$ /blog/style-drupal-6s-taxonomy-lists-php-css-jquery permanent; + rewrite ^/blog/include-local-drupal-settings-file-environment-configuration-overrides/?$ /blog/include-local-drupal-settings-file-environment-configuration-and-overrides permanent; + rewrite ^/blog/install-and-configure-subversion-svn-server-ubuntu/?$ /blog/how-install-configure-subversion-svn-server-ubuntu permanent; + rewrite ^/blog/live-blogging-symfonylive-london/?$ /blog/live-blogging-symfonylive-london-2019 permanent; + rewrite ^/blog/minimum-core-version/?$ /blog/how-define-minimum-drupal-core-version permanent; + rewrite ^/blog/nginx-redirects-with-query-string-arguments/?$ /blog/nginx-redirects-query-string-arguments permanent; + rewrite ^/blog/null-users-and-system-users-in-drupal/?$ /blog/null-users-system-users-drupal permanent; + rewrite ^/blog/overridding-phpcs-configuration-drupal-ci/?$ /blog/overriding-phpcs-configuration-drupal-ci permanent; + rewrite ^/blog/pantheon-settings-files/?$ /blog/include-environment-specific-settings-files-pantheon permanent; + rewrite ^/blog/pdfpc-pdf-presenter-console-notes/?$ /blog/presenting-pdf-slides-using-pdfpc-pdf-presenter-console permanent; + rewrite ^/blog/php-apps-subdirectory-nginx/?$ /blog/how-put-your-php-application-subdirectory-another-site-nginx permanent; + rewrite ^/blog/presenting-tailwind-css-ansible-cms-philly/?$ /blog/presenting-on-tailwind-css-and-ansible-at-cms-philly permanent; + rewrite ^/blog/programmatically-load-(an-)?entityform-(in-)?drupal-7/?$ /blog/entityform permanent; + rewrite ^/blog/published-my-first-docker-images-docker-hub/?$ /blog/published-my-first-docker-images-docker-hub-adr-tools-sculpin-rst2pdf permanent; + rewrite ^/blog/publishing-sculpin-sites-(with-)?github-pages/?$ /blog/publishing-sculpin-sites-github-pages permanent; + rewrite ^/blog/queuing-private-messages-in-drupal-8/?$ /blog/queuing-private-messages-drupal-8 permanent; + rewrite ^/blog/quick-project-switching-in-phpstorm/?$ /blog/quick-project-switching-phpstorm permanent; + rewrite ^/blog/quickly-apply-patches-using-git-and-curl-or-wget/?$ /blog/quickly-apply-patches-using-git-curl-or-wget permanent; + rewrite ^/blog/rebuilding-bartik-with-vuejs-tailwind-css-part-2/?$ /blog/rebuilding-bartik-drupals-default-theme-vuejs-tailwind-css-part-2 permanent; + rewrite ^/blog/rebuilding-bartik-with-vuejs-tailwind-css/?$ /blog/rebuilding-bartik-drupals-default-theme-vuejs-tailwind-css permanent; + rewrite ^/blog/rebuilding-uis-tailwind-css/?$ /blog/uis-ive-rebuilt-tailwind-css permanent; + rewrite ^/blog/restructuring-my-tailwindjs-config-files/?$ /blog/restructuring-my-tailwindjs-configuration-files permanent; + rewrite ^/blog/retrieving-profile-data-user-using-entity-metadata-wrapper/?$ /blog/cleanly-retrieving-user-profile-data-using-entity-metadata-wrapper permanent; + rewrite ^/blog/running-drupal-with-symfony-local-server/?$ /blog/running-drupal-88-symfony-local-server permanent; + rewrite ^/blog/running-phpunit-tests-docksal-phpstorm/?$ /blog/how-run-drupal-8-phpunit-tests-within-docksal-phpstorm permanent; + rewrite ^/blog/simplifying-drupal-migrations-with-xautoload/?$ /blog/simplifying-drupal-migrations-xautoload permanent; + rewrite ^/blog/speaking-drupalcon-barcelona-2020/?$ /blog/speaking-drupalcon-europe-2020 permanent; + rewrite ^/blog/speaking-during-lockdown/?$ /blog/speaking-remotely-during-covid-19 permanent; + rewrite ^/blog/speaking-remotely-during-lockdown/?$ /blog/speaking-remotely-during-covid-19 permanent; + rewrite ^/blog/style-drupal-6s-taxonomy-lists-php-css-jquery/?$ /blog/style-drupal-6s-taxonomy-lists-php-css-and-jquery permanent; + rewrite ^/blog/survey-results-my-drupalcon-europe-session/?$ /blog/survey-results-my-drupalcon-europe-session-test-driven-drupal permanent; + rewrite ^/blog/system-users-null-users/?$ /blog/null-users-and-system-users-in-drupal permanent; + rewrite ^/blog/test-driven-drupal-gitstore-leanpub/?$ /blog/test-driven-drupal-on-gitstore-leanpub permanent; + rewrite ^/blog/test-driven-drupal-presentation-drupalcon-europe-0/?$ /blog/test-driven-drupal-presentation-drupalcon-europe permanent; + rewrite ^/blog/test-driven-drupal-session-drupalcon-europe/?$ /blog/test-driven-drupal-presentation-drupalcon-europe permanent; + rewrite ^/blog/test-driven-drupal-session-video-drupalcon-europe/?$ /blog/test-driven-drupal-presentation-drupalcon-europe permanent; + rewrite ^/blog/testing-tailwind-css-plugins-with-jest/?$ /blog/testing-tailwind-css-plugins-jest permanent; + rewrite ^/blog/testing-tailwindcss-plugins-with-jest/?$ /blog/testing-tailwind-css-plugins-jest permanent; + rewrite ^/blog/tweets-from-drupalcamp-london/?$ /blog/tweets-drupalcamp-london permanent; + rewrite ^/blog/updating-features-and-adding-components-using-drush/?$ /blog/updating-features-adding-components-using-drush permanent; + rewrite ^/blog/updating-forked-repositories-github/?$ /blog/updating-forked-github-repos permanent; + rewrite ^/blog/use-regular-expressions-search-and-replace-coda-or-textmate/?$ /blog/use-regular-expressions-search-replace-coda-or-textmate permanent; + rewrite ^/blog/using-environment-variables-settings-docksal/?$ /blog/how-use-environment-variables-your-drupal-settings-docksal permanent; + rewrite ^/blog/using-psr-4-autoloading-your-drupal-7-test-cases/?$ /blog/psr4-autoloading-test-cases-drupal-7 permanent; + rewrite ^/blog/using-tailwind-css-in-your-drupal-theme/?$ /blog/using-tailwind-css-your-drupal-theme permanent; + rewrite ^/blog/using-the-pcss-extension-postcss-webpack-encore/?$ /blog/using-pcss-extension-postcss-webpack-encore permanent; + rewrite ^/blog/weeknotes-june-5th/?$ /blog/weeknotes-2021-06-05 permanent; + rewrite ^/blog/writing-drupal-module-test-driven-development-tdd/?$ /blog/writing-new-drupal-8-module-using-test-driven-development-tdd permanent; + rewrite ^/book/?$ /test-driven-drupal permanent; + rewrite ^/calendars?/?$ https://savvycal.com/opdavies permanent; + rewrite ^/cms-philly/?$ /articles/presenting-on-tailwind-css-and-ansible-at-cms-philly permanent; + rewrite ^/code-enigma-interview/?$ https://blog.codeenigma.com/interview-with-a-drupal-expert-9fcd8e0fad28 permanent; + rewrite ^/consulting/?$ / permanent; + rewrite ^/contrib-half-hour/?$ https://www.youtube.com/playlist?list=PLu-MxhbnjI9rHroPvZO5LEUhr58Yl0j_F permanent; + rewrite ^/d0P5z/?$ /talks/drupal-8-php-libraries-drupalorg-api permanent; + rewrite ^/d7/?$ /drupal7 permanent; + rewrite ^/dcbristol-cfp/?$ https://www.papercall.io/drupalcamp-bristol-2019 permanent; + rewrite ^/dcbristol17-videos/?$ https://www.youtube.com/playlist?list=PLOwPvExSyLLngtd6R4PUD9MCXa6QL_obA permanent; + rewrite ^/dcbristol19-announced/?$ /articles/drupalcamp-bristol-2019-speakers-sessions-announced permanent; + rewrite ^/dclondon-sat/?$ https://drupalcamp.london/schedule/saturday permanent; + rewrite ^/dclondon-sun/?$ https://drupalcamp.london/schedule/sunday permanent; + rewrite ^/dclondon20/?$ /articles/drupalcamp-london-testing-workshop permanent; + rewrite ^/ddev-phpunit-command/?$ /blog/creating-custom-phpunit-command-ddev permanent; + rewrite ^/deploying-php-ansible/?$ /talks/deploying-php-ansible-ansistrano permanent; + rewrite ^/dks7E/?$ https://www.youtube.com/watch?v=PLS4ET7FAcU permanent; + rewrite ^/do-library/?$ https://github.com/opdavies/drupalorg-api-php permanent; + rewrite ^/do-projects/?$ https://github.com/opdavies/drupal-module-drupalorg-projects permanent; + rewrite ^/docksal-phpunit-phpstorm/?$ /articles/running-phpunit-tests-docksal-phpstorm permanent; + rewrite ^/docksal-posts/?$ /articles/tags/docksal permanent; + rewrite ^/dransible-drupal-9/?$ /blog/upgrading-dransible-project-drupal-9 permanent; + rewrite ^/dransible/?$ https://github.com/opdavies/dransible permanent; + rewrite ^/drupal-bristol-march-19/?$ https://docs.google.com/presentation/d/1pk9LIN-hHX73kvDdo-lzgmKlAeH33_K_uvI0t7A-rvY/edit?usp=sharing permanent; + rewrite ^/drupal-consultant/?$ /drupal-consulting permanent; + rewrite ^/drupal-consulting/?$ / permanent; + rewrite ^/drupal-core-live-stream/?$ https://www.youtube.com/watch?v=OK4FWwh1gQU permanent; + rewrite ^/drupal-core-testing-gate/?$ https://www.drupal.org/core/gates#testing permanent; + rewrite ^/drupal-first-time-issues/?$ https://www.drupal.org/project/issues/search?text=&projects=&assigned=&submitted=&project_issue_followers=&status%5B%5D=Open&issue_tags_op=%3D&issue_tags=Novice permanent; + rewrite ^/drupal-forum-post/?$ http://www.webmaster-forums.net/webmasters-corner/developing-my-website-using-php-and-mysql#comment-1231537 permanent; + rewrite ^/drupal-marketplace-uk/?$ https://www.drupal.org/drupal-services?offices%5B%5D=24460 permanent; + rewrite ^/drupal-meetups-twitterbot/?$ /articles/introducing-the-drupal-meetups-twitterbot permanent; + rewrite ^/drupal-novice-issues/?$ https://www.drupal.org/project/issues/search?text=&projects=&assigned=&submitted=&project_issue_followers=&status%5B%5D=Open&issue_tags_op=%3D&issue_tags=Novice permanent; + rewrite ^/drupal-php-developer-consultant-uk/?$ /drupal-php-developer permanent; + rewrite ^/drupal-php-developer/?$ /drupal-consultant permanent; + rewrite ^/drupal-tailwind-demo/?$ https://www.youtube.com/watch?v=1eM-Gw6GI4g permanent; + rewrite ^/drupal-tailwindcss/?$ https://www.drupal.org/project/tailwindcss permanent; + rewrite ^/drupal-vuejs/?$ /talks/decoupling-drupal-vuejs/ permanent; + rewrite ^/drupal7/?$ /drupal-upgrade permanent; + rewrite ^/drupalcamp-london-2019-tickets/?$ /articles/drupalcamp-london-2019-tickets permanent; + rewrite ^/drupalcamp-nyc-training/?$ https://www.youtube.com/watch?v=3M9c4UUzKm0 permanent; + rewrite ^/drupalorg-project-issues/?$ https://www.drupal.org/project/issues/search?projects=Override+Node+Options%2C+Tailwind+CSS+Starter+Kit%2C+Block+ARIA+Landmark+Roles%2C+Copyright+Block+module%2C+System+User%2C+Null+User%2C+Collection+class%2C+Pathauto+Menu+Link%2C+Webform+ARIA&project_issue_followers=&status%5B%5D=1&status%5B%5D=13&status%5B%5D=8&status%5B%5D=14&status%5B%5D=15&issue_tags_op=%3D permanent; + rewrite ^/drupalorg/?$ https://www.drupal.org/u/opdavies permanent; + rewrite ^/drupalversary/?$ https://github.com/opdavies/drupal-module-drupalversary permanent; + rewrite ^/elewant/?$ https://elewant.com/shepherd/admire/opdavies permanent; + rewrite ^/feed/?$ /rss.xml permanent; + rewrite ^/first-drupal-core-issue/?$ https://www.drupal.org/project/drupal/issues/753898 permanent; + rewrite ^/first-npm-package/?$ https://www.npmjs.com/package/tailwindcss-vuejs permanent; + rewrite ^/freeagent/?$ https://opdavies.freeagent.com permanent; + rewrite ^/git-flow/?$ /talks/git-flow permanent; + rewrite ^/gitlab/?$ https://gitlab.com/opdavies permanent; + rewrite ^/gitstore/?$ https://enjoy.gitstore.app/maintainers/opdavies permanent; + rewrite ^/gmail-filters/?$ https://gitlab.com/opdavies/gmail-filters permanent; + rewrite ^/images/me-precedent.jpg/?$ /sites/default/files/images/social-avatar.jpg permanent; + rewrite ^/inviqa-tailwind-demo/?$ https://play.tailwindcss.com/Yfmw8O5UNN permanent; + rewrite ^/inviqa-tailwind-notes/?$ https://gist.github.com/opdavies/e6f0f4938506a6859acf1aca8b4e1a74 permanent; + rewrite ^/join-php-south-wales-slack/?$ https://join.slack.com/t/phpsouthwales/shared_invite/zt-4vuetc43-AvtEK1WqNzp5k1w4yWKOJA permanent; + rewrite ^/jy6rW/?$ https://www.meetup.com/PHP-South-Wales/events/264731393 permanent; + rewrite ^/kB6Jd/?$ /articles/running-drupal-with-symfony-local-server/ permanent; + rewrite ^/kmDRA/?$ https://www.bbc.co.uk/news/uk-46561779 permanent; + rewrite ^/leeds-php-drupal-9/?$ https://www.meetup.com/leedsphp/events/272504993 permanent; + rewrite ^/live/?$ https://www.youtube.com/channel/UCkeK0qF9HHUPQH_fvn4ghqQ permanent; + rewrite ^/npm/?$ https://www.npmjs.com/~opdavies permanent; + rewrite ^/oFlkS/?$ /articles/test-driven-drupal-on-gitstore-leanpub permanent; + rewrite ^/oliver-davies-uk-based-drupal-symfony-developer/?$ /oliver-davies-uk-based-drupal-php-developer permanent; + rewrite ^/pair-programming/?$ /pair permanent; + rewrite ^/pair-with-me/?$ /pair permanent; + rewrite ^/pairing/?$ /pair permanent; + rewrite ^/php-ansible/?$ /talks/deploying-php-ansible-ansistrano permanent; + rewrite ^/qSHAl/?$ /articles/published-my-first-npm-package/ permanent; + rewrite ^/qT1Rb/?$ https://github.com/opdavies/drupal-meetups-twitterbot permanent; + rewrite ^/rebuilding-acquia/?$ https://rebuilding-acquia.oliverdavies.uk permanent; + rewrite ^/rebuilding-bartik/?$ /articles/rebuilding-bartik-with-vuejs-tailwind-css permanent; + rewrite ^/rebuilding-bristol-js/?$ https://github.com/opdavies/rebuilding-bristol-js permanent; + rewrite ^/rebuilding-pantheon/?$ https://play.tailwindcss.com/LND98XihGI?layout=horizontal permanent; + rewrite ^/rebuilding-platformsh/?$ https://rebuilding-platformsh.oliverdavies.uk permanent; + rewrite ^/rebuilding-symfony/?$ https://github.com/opdavies/rebuilding-symfony permanent; + rewrite ^/rk29B/?$ https://www.meetup.com/PHP-South-Wales/events/268422525 permanent; + rewrite ^/roadmap/?$ /drupal-upgrade permanent; + rewrite ^/rss/?$ /rss.xml permanent; + rewrite ^/rst2pdf/?$ /talks/building-presenting-slide-decks-rst2pdf permanent; + rewrite ^/s9MjJ/?$ https://symfonycasts.com/screencast/symfony permanent; + rewrite ^/sculpin-encore-versioning/?$ https://github.com/opdavies/oliverdavies.uk/commit/d192b04aefa6e7a21bfc1f2e0fe0a16111e0e8a2 permanent; + rewrite ^/sculpin/?$ /talks/building-static-websites-sculpin permanent; + rewrite ^/sites/default/files/images/social-avatar.jpg /images/social-avatar.jpg permanent; + rewrite ^/skills/?$ https://opdavies-skills-tailwindcss.netlify.com/ permanent; + rewrite ^/slides-drupal-9/?$ https://slides-upgrading-to-drupal-9.oliverdavies.uk permanent; + rewrite ^/slides-upgrading-to-drupal-9/?$ https://slides-upgrading-to-drupal-9.oliverdavies.uk permanent; + rewrite ^/slides-upgrading-to-drupal-9/index.html/?$ https://slides-upgrading-to-drupal-9.oliverdavies.uk permanent; + rewrite ^/slides-working-with-workspace/?$ https://slides-working-with-workspace.oliverdavies.uk permanent; + rewrite ^/speaker-info/?$ /speaker permanent; + rewrite ^/speaker-information/?$ /speaker permanent; + rewrite ^/speaker/?$ /press permanent; + rewrite ^/speaking-videos/?$ https://www.youtube.com/playlist?list=PLHn41Ay7w7kfAzczswrANch5oHAPZBlvu permanent; + rewrite ^/stream/?$ https://www.youtube.com/channel/UCkeK0qF9HHUPQH_fvn4ghqQ/live permanent; + rewrite ^/subscription/?$ / permanent; + rewrite ^/swap-markdown-parser/?$ https://github.com/opdavies/sculpin-twig-markdown-bundle-example/tree/swap-markdown-parser permanent; + rewrite ^/symfony-server/?$ /articles/running-drupal-with-symfony-local-server permanent; + rewrite ^/symfony/?$ https://connect.symfony.com/profile/opdavies permanent; + rewrite ^/symfonylive/?$ /articles/live-blogging-symfonylive-london permanent; + rewrite ^/symposium/?$ https://symposiumapp.com/u/opdavies permanent; + rewrite ^/tailwind-css-talk/?$ /talks/taking-flight-tailwind-css permanent; + rewrite ^/tailwind-repos/?$ https://github.com/opdavies?utf8=%e2%9c%93&tab=repositories&q=tailwindcss permanent; + rewrite ^/tailwind-talk/?$ /talks/taking-flight-with-tailwind-css permanent; + rewrite ^/tailwindcss-demo/?$ http://tailwindcss-demo.oliverdavies.uk/ permanent; + rewrite ^/talks-offer-tweet/?$ https://twitter.com/opdavies/status/1250870367712935938 permanent; + rewrite ^/talks/2012/09/05/what-is-this-drupal-thing-unified-diff/?$ /talks/what-is-this-drupal-thing permanent; + rewrite ^/talks/2013/07/10/drupal-ldap-swdug/?$ /talks/drupal-ldap permanent; + rewrite ^/talks/2014/03/01/git-flow-drupalcamp-london-2014/?$ /talks/git-flow permanent; + rewrite ^/talks/2014/07/02/drush-make-drupalbristol-drupal-bristol/?$ /talks/drush-make-drupalbristol permanent; + rewrite ^/talks/2014/08/19/drupal-association-swdug/?$ /talks/drupal-association permanent; + rewrite ^/talks/2015/01/18/drupalorg-2015-drupalcamp-brighton-2015/?$ /talks/drupalorg-in-2015-whats-coming-next permanent; + rewrite ^/talks/2015/02/28/drupalorg-2015-drupalcamp-london-2015/?$ /talks/drupalorg-in-2015-whats-coming-next permanent; + rewrite ^/talks/2015/04/08/drupal-8-phpsw/?$ /talks/drupal-8 permanent; + rewrite ^/talks/2015/07/25/test-drive-twig-with-sculpin-drupalcamp-north-2015/?$ /talks/test-drive-twig-with-sculpin permanent; + rewrite ^/talks/2015/08/25/dancing-for-drupal-umbristol/?$ /talks/dancing-for-drupal permanent; + rewrite ^/talks/2015/10/14/sculpin-phpsw/?$ /talks/sculpin permanent; + rewrite ^/talks/2016/03/05/drupal-8-module-development-drupalcamp-london-2016/?$ /talks/getting-started-with-drupal-8-module-development permanent; + rewrite ^/talks/2016/03/09/drupal-vm-generator-nwdug/?$ /talks/drupal-vm-generator permanent; + rewrite ^/talks/2016/04/02/drupal-vm-generator-drupal-bristol/?$ /talks/drupal-vm-generator permanent; + rewrite ^/talks/2016/06/11/drupal-8-rejoining-the-herd-php-south-coast-2016/?$ /talks/drupal-8-rejoining-the-herd permanent; + rewrite ^/talks/2016/07/23/drupal-vm-meet-symfony-console-drupalcamp-bristol-2016/?$ /talks/drupal-vm-meet-symfony-console permanent; + rewrite ^/talks/2016/11/09/drupal-development-with-composer-phpsw/?$ /talks/drupal-development-with-composer permanent; + rewrite ^/talks/2016/11/17/goodbye-drush-make-hello-composer-drupal-bristol/?$ /talks/goodbye-drush-make-hello-composer permanent; + rewrite ^/talks/2017/01/18/getting-your-data-into-drupal-8-drupal-bristol/?$ /talks/getting-your-data-into-drupal-8 permanent; + rewrite ^/talks/2017/03/04/getting-your-data-into-drupal-8-drupalcamp-london-2017/?$ /talks/getting-your-data-into-drupal-8 permanent; + rewrite ^/talks/ansible-ansistrano/?$ https://www.oliverdavies.uk/talks/deploying-php-ansible-ansistrano permanent; + rewrite ^/talks/deploying-php-applications-fabric/?$ /talks/deploying-php-fabric permanent; + rewrite ^/talks/deploying-php-applications-with-fabric/?$ /talks/deploying-php-fabric permanent; + rewrite ^/talks/drupal-vm-generator-2/?$ /talks/drupal-vm-generator permanent; + rewrite ^/talks/drupalorg-2015-2/?$ /talks/drupalorg-2015 permanent; + rewrite ^/talks/drupalorg-in-2015-whats-coming-next/?$ /talks/drupalorg-2015 permanent; + rewrite ^/talks/getting-started-with-drupal-8-module-development/?$ /drupal-8-module-development permanent; + rewrite ^/talks/having-fun-drupal-8-php-libraries-drupalorg-api/?$ /talks/drupal-8-php-libraries-drupalorg-api permanent; + rewrite ^/talks/never-commit-master-introduction-git-flow/?$ /talks/git-flow permanent; + rewrite ^/talks/sculpin/?$ /talks/building-static-websites-sculpin permanent; + rewrite ^/talks/tailwind/?$ /talks/taking-flight-with-tailwind-css/ permanent; + rewrite ^/talks/taking-flight-tailwind-css/?$ /talks/taking-flight-with-tailwind-css permanent; + rewrite ^/talks/using-laravel-collections-outside-laravel/?$ /talks/using-illuminate-collections-outside-laravel permanent; + rewrite ^/talks/working-workspace/?$ /talks/working-with-workspace permanent; + rewrite ^/tdd-blog/?$ https://github.com/opdavies/drupal-module-tdd-blog permanent; + rewrite ^/tdd-test-driven-drupal/?$ /talks/tdd-test-driven-drupal/ permanent; + rewrite ^/team-coaching/?$ / permanent; + rewrite ^/test-driven-drupal-book/?$ /test-driven-drupal permanent; + rewrite ^/testing-drupal-intro/?$ https://inviqa.com/blog/drupal-automated-testing-introduction permanent; + rewrite ^/testing-drupal/?$ https://www.oliverdavies.uk/talks/tdd-test-driven-drupal permanent; + rewrite ^/testing-tailwind-plugins/?$ /articles/testing-tailwindcss-plugins-with-jest permanent; + rewrite ^/testing-workshop-code/?$ https://github.com/opdavies/workshop-drupal-automated-testing-code permanent; + rewrite ^/testing-workshop/?$ https://github.com/opdavies/workshop-drupal-automated-testing permanent; + rewrite ^/todoist-filters/?$ https://gist.github.com/opdavies/6709fbdac5c3babbd94137bcc8b8e3c2 permanent; + rewrite ^/twitter-tweaks/?$ https://github.com/opdavies/chrome-extension-twitter-tweaks permanent; + rewrite ^/upgrading-to-drupal-9/?$ /talks/upgrading-your-site-drupal-9 permanent; + rewrite ^/uxbjV/?$ https://www.drupal.org/project/copyright_block permanent; + rewrite ^/vyTEF/?$ https://www.npmjs.com/package/tailwindcss-vuejs permanent; + rewrite ^/webpack-encore-pcss-regex/?$ https://regexr.com/51iaf permanent; + rewrite ^/wordcamp-bristol-tailwindcss/?$ https://2019.bristol.wordcamp.org/session/taking-flight-with-tailwind-css permanent; + rewrite ^/wordpress-tailwind/?$ https://github.com/opdavies/wordcamp-bristol-2019 permanent; + rewrite ^/work/?$ /drupal-php-developer permanent; + rewrite ^/working-with-workspace/?$ /talks/working-with-workspace permanent; + rewrite ^/workshop-drupal-testing/?$ https://github.com/opdavies/workshop-drupal-automated-testing permanent; + rewrite ^/workspace-demo/?$ https://github.com/opdavies/working-with-workspace-demo permanent; + rewrite ^/wp-tailwind-repo/?$ https://github.com/opdavies/wordcamp-bristol-2019 permanent; + rewrite ^/wp-tailwind-starter/?$ https://github.com/opdavies/wordpress-tailwindcss-startker-kit permanent; + rewrite ^/wp-tailwind-static/?$ https://wp-tailwind.oliverdavies.uk permanent; + rewrite ^/wp-tailwind/?$ https://wp-tailwind.oliverdavies.uk permanent; + rewrite ^/yXhoS/?$ /talks/things-you-should-know-about-php permanent; + + rewrite ^/talks/archive/?$ /talks permanent; + rewrite ^/talks/(.*)$ /presentations/$1 permanent; + rewrite ^/talks/?$ /presentations permanent; + + # Remove trailing slashes. + rewrite ^/(.*)/$ /$1 permanent; + ''; + + locations."/".tryFiles = "$uri $uri.html $uri/index.html =404"; + }; + + "oliverdavies.uk" = { + enableACME = true; + forceSSL = true; + globalRedirect = "www.oliverdavies.uk"; + }; + }; +} diff --git a/nix/hosts/hetznix/modules/nginx/vhosts/zet.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/zet.oliverdavies.uk.nix new file mode 100644 index 0000000..174ed19 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/zet.oliverdavies.uk.nix @@ -0,0 +1,7 @@ +{ + services.nginx.virtualHosts."zet.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/zet.oliverdavies.uk/output_prod"; + }; +}