From c53b3e964bc8670437e410c1fb18d2dadcbe0a5f Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 22 Mar 2023 22:27:36 +0100 Subject: [PATCH] hosts/web-2: add legal.clerie.de --- hosts/web-2/configuration.nix | 1 + hosts/web-2/legal.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 hosts/web-2/legal.nix diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index 907113e..dc062c5 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -11,6 +11,7 @@ ./gitea.nix ./iot-data.nix ./ip.nix + ./legal.nix ./meow.nix ./milchinsel.nix ./ping.nix diff --git a/hosts/web-2/legal.nix b/hosts/web-2/legal.nix new file mode 100644 index 0000000..5fc6688 --- /dev/null +++ b/hosts/web-2/legal.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: + +{ + services.nginx.virtualHosts = { + "legal.clerie.de" = { + enableACME = true; + forceSSL = true; + root = pkgs.fetchgit { + url = "https://git.clerie.de/clerie/legal.clerie.de.git"; + rev = "c6900226e3107a2e370a32759d83db472ab5450d"; + sha256 = "sha256-lOjbHqYc/85rjotwQ5Oj+MSWnDIfLx2w5mpiJkChbXU="; + }; + }; + }; +}