From 2a4f3a2d8391cc5bb341bc24732a6c66e3d54978 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 12 Dec 2021 18:42:41 +0100 Subject: [PATCH] Migrate prediger website to web-2 --- hosts/web-2/configuration.nix | 1 + hosts/web-2/prediger.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 hosts/web-2/prediger.nix diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index 5c8d222..aa45eae 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -12,6 +12,7 @@ ./ip.nix ./meow.nix ./milchinsel.nix + ./prediger.nix ./public.nix ./radicale.nix ./reichartstrasse.nix diff --git a/hosts/web-2/prediger.nix b/hosts/web-2/prediger.nix new file mode 100644 index 0000000..4217f4d --- /dev/null +++ b/hosts/web-2/prediger.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + services.nginx.virtualHosts = { + "prediger.riese.space" = { + enableACME = true; + forceSSL = true; + root = fetchGit { + url = "https://git.clerie.de/clerie/prediger.riese.space.git"; + ref = "main"; + rev = "7f51e884ccf8a258838adb1d825bc51eeef2f475"; + }; + locations."/map/" = { + alias = fetchGit { + url = "https://git.clerie.de/quiribi/Prediger-workadventure.git"; + ref = "master"; + rev = "304850367aad275c3410005580313dac7fe24788"; + } + "/"; + }; + }; + }; +}