1
0

Compare commits

..

2 Commits

Author SHA1 Message Date
362a6fcf7f hosts/web-2: remove prediger workadventure map 2023-09-15 20:44:05 +02:00
1e22756876 hosts/web-2: host fieldpoc documentation 2023-09-15 20:43:09 +02:00
3 changed files with 20 additions and 26 deletions

View File

@ -10,6 +10,7 @@
./chaosevents.nix
./clerie.nix
./drop.nix
./fieldpoc.nix
./gitea.nix
./iot-data.nix
./ip.nix
@ -18,7 +19,6 @@
./milchinsel.nix
./mitel-ommclient2.nix
./ping.nix
./prediger.nix
./public.nix
./radicale.nix
./reichartstrasse.nix

19
hosts/web-2/fieldpoc.nix Normal file
View File

@ -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";
};
};
}

View File

@ -1,25 +0,0 @@
{ pkgs, ... }:
{
services.nginx.virtualHosts = {
"prediger.riese.space" = {
enableACME = true;
forceSSL = true;
root = pkgs.fetchgit {
url = "https://git.clerie.de/clerie/prediger.riese.space.git";
rev = "7f51e884ccf8a258838adb1d825bc51eeef2f475";
sha256 = "sha256-tL+k9l0fX4dc971y4EWGM++BvjfnvRAtU/LvS2QYANU=";
};
locations."/map/" = {
alias = pkgs.fetchgit {
url = "https://git.clerie.de/quiribi/Prediger-workadventure.git";
rev = "304850367aad275c3410005580313dac7fe24788";
sha256 = "sha256-t6C7k5p6ZKfQedumTqxEmGYQqgaE3OiK5q41dDWnz/Y=";
} + "/";
extraConfig = ''
add_header Access-Control-Allow-Origin *;
'';
};
};
};
}