From 1e227568764ee898bcaf8bd979ca321685e67049 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 15 Sep 2023 20:43:09 +0200 Subject: [PATCH] hosts/web-2: host fieldpoc documentation --- hosts/web-2/configuration.nix | 1 + hosts/web-2/fieldpoc.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 hosts/web-2/fieldpoc.nix diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index e6f0e44..863b750 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -10,6 +10,7 @@ ./chaosevents.nix ./clerie.nix ./drop.nix + ./fieldpoc.nix ./gitea.nix ./iot-data.nix ./ip.nix diff --git a/hosts/web-2/fieldpoc.nix b/hosts/web-2/fieldpoc.nix new file mode 100644 index 0000000..96d58db --- /dev/null +++ b/hosts/web-2/fieldpoc.nix @@ -0,0 +1,19 @@ +{ ... }: { + services.update-from-hydra.paths.fieldpoc = { + enable = true; + hydraUrl = "https://hydra.clerie.de"; + hydraProject = "clerie"; + hydraJobset = "fieldpoc"; + hydraJob = "packages.x86_64-linux.docs"; + nixStoreUri = "https://nix-cache.clerie.de"; + resultPath = "/srv/fieldpoc"; + }; + + services.nginx.virtualHosts = { + "fieldpoc.clerie.de" = { + enableACME = true; + forceSSL = true; + root = "/srv/fieldpoc"; + }; + }; +}