1
0
nixfiles/hosts/web-2/prediger.nix

26 lines
769 B
Nix
Raw Normal View History

2022-10-17 23:03:09 +02:00
{ pkgs, ... }:
2021-12-12 18:42:41 +01:00
{
services.nginx.virtualHosts = {
"prediger.riese.space" = {
enableACME = true;
forceSSL = true;
2022-10-17 23:03:09 +02:00
root = pkgs.fetchgit {
2021-12-12 18:42:41 +01:00
url = "https://git.clerie.de/clerie/prediger.riese.space.git";
rev = "7f51e884ccf8a258838adb1d825bc51eeef2f475";
2022-10-17 23:03:09 +02:00
sha256 = "sha256-tL+k9l0fX4dc971y4EWGM++BvjfnvRAtU/LvS2QYANU=";
2021-12-12 18:42:41 +01:00
};
locations."/map/" = {
2022-10-17 23:03:09 +02:00
alias = pkgs.fetchgit {
2021-12-12 18:42:41 +01:00
url = "https://git.clerie.de/quiribi/Prediger-workadventure.git";
rev = "304850367aad275c3410005580313dac7fe24788";
2022-10-17 23:03:09 +02:00
sha256 = "sha256-t6C7k5p6ZKfQedumTqxEmGYQqgaE3OiK5q41dDWnz/Y=";
2021-12-12 18:42:41 +01:00
} + "/";
2021-12-12 19:06:14 +01:00
extraConfig = ''
add_header Access-Control-Allow-Origin *;
'';
2021-12-12 18:42:41 +01:00
};
};
};
}