From f3f27b9e5f52a49f2dd8d4a9192fb349498d7a81 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 14 Jan 2021 14:53:27 +0100 Subject: [PATCH] Add reichartstrasse.de to web-2 --- hosts/web-2/configuration.nix | 1 + hosts/web-2/reichartstrasse.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 hosts/web-2/reichartstrasse.nix diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index 1dec5da..d2b8af6 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -12,6 +12,7 @@ ./milchinsel.nix ./public.nix ./radicale.nix + ./reichartstrasse.nix ./znc.nix ]; diff --git a/hosts/web-2/reichartstrasse.nix b/hosts/web-2/reichartstrasse.nix new file mode 100644 index 0000000..5c9ca37 --- /dev/null +++ b/hosts/web-2/reichartstrasse.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + services.nginx.virtualHosts = { + "www.reichartstrasse.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "301 https://reichartstrasse.de$request_uri"; + }; + }; + + "reichartstrasse.de" = { + enableACME = true; + forceSSL = true; + root = fetchGit { + url = "https://git.clerie.de/clerie/reichartstrasse.de.git"; + rev = "377e27d8a8d4b701fa7da072d3f3e68925c5f274"; + }; + }; + }; +}