diff --git a/nix/hosts/hetznix/modules/acme.nix b/nix/hosts/hetznix/modules/acme.nix index 837e401..84af43f 100644 --- a/nix/hosts/hetznix/modules/acme.nix +++ b/nix/hosts/hetznix/modules/acme.nix @@ -17,6 +17,7 @@ "rebuilding-symfony.oliverdavies.uk" "tailwindcss-demo.oliverdavies.uk" "talking-drupal-tailwindcss.oliverdavies.uk" + "tome.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 index 0c19d6c..b4e7d11 100644 --- a/nix/hosts/hetznix/modules/nginx/default.nix +++ b/nix/hosts/hetznix/modules/nginx/default.nix @@ -15,6 +15,7 @@ ./vhosts/rebuilding-symfony.oliverdavies.uk.nix ./vhosts/tailwindcss-demo.oliverdavies.uk.nix ./vhosts/talking-drupal-tailwindcss.oliverdavies.uk.nix + ./vhosts/tome.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/nginx/vhosts/tome.oliverdavies.uk.nix b/nix/hosts/hetznix/modules/nginx/vhosts/tome.oliverdavies.uk.nix new file mode 100644 index 0000000..ef41634 --- /dev/null +++ b/nix/hosts/hetznix/modules/nginx/vhosts/tome.oliverdavies.uk.nix @@ -0,0 +1,18 @@ +{ + services.nginx.virtualHosts."tome.oliverdavies.uk" = { + useACMEHost = "oliverdavies.uk"; + forceSSL = true; + root = "/var/www/vhosts/www.oliverdavies.uk-drupal"; + + locations."/" = { + tryFiles = "$uri $uri/ $uri.html $uri/index.html =404"; + extraConfig = '' + rewrite ^/(.*[^/])/$ /$1 permanent; + ''; + }; + + extraConfig = '' + add_header X-Robots-Tag "noindex, nofollow"; + ''; + }; +}