From 4752725b67eb4a778db98a26b8db256f85a14eb8 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 14 Jan 2021 14:36:20 +0100 Subject: [PATCH] Add milchinsel.de to web-2 --- hosts/web-2/configuration.nix | 1 + hosts/web-2/milchinsel.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 hosts/web-2/milchinsel.nix diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index 496ba28..1dec5da 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -9,6 +9,7 @@ ./gitea.nix ./ip.nix ./meow.nix + ./milchinsel.nix ./public.nix ./radicale.nix ./znc.nix diff --git a/hosts/web-2/milchinsel.nix b/hosts/web-2/milchinsel.nix new file mode 100644 index 0000000..d182709 --- /dev/null +++ b/hosts/web-2/milchinsel.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + services.nginx.virtualHosts = { + "www.milchinsel.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "301 https://milchinsel.de$request_uri"; + }; + }; + + "milchinsel.de" = { + enableACME = true; + forceSSL = true; + root = fetchGit { + url = "https://git.clerie.de/clerie/milchinsel.de.git"; + rev = "8ca6727902fb5a2581b56c4b3ab8d01585f3acb0"; + }; + }; + }; +}