From db37daab9517dc8ffc6bef606e47211ab46eb8bc Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 30 Apr 2021 23:36:26 +0200 Subject: [PATCH] Add ard erothek to web-2 --- hosts/web-2/ard-erothek.nix | 22 ++++++++++++++++++++++ hosts/web-2/configuration.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 hosts/web-2/ard-erothek.nix diff --git a/hosts/web-2/ard-erothek.nix b/hosts/web-2/ard-erothek.nix new file mode 100644 index 0000000..a1a8d30 --- /dev/null +++ b/hosts/web-2/ard-erothek.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + services.nginx.virtualHosts = { + "www.ard-erothek.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "301 https://ard-erothek.de$request_uri"; + }; + }; + + "ard-erothek.de" = { + enableACME = true; + forceSSL = true; + root = fetchGit { + url = "https://git.clerie.de/clerie/ard-erothek.de.git"; + rev = "f030a96a1be550e600e029bf1addd009a89edcce"; + }; + }; + }; +} diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index d90f066..023d206 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -5,6 +5,7 @@ [ ./hardware-configuration.nix ../../configuration/common + ./ard-erothek.nix ./bubblesort.nix ./clerie.nix ./gitea.nix