26 lines
655 B
Nix
26 lines
655 B
Nix
{ ... }:
|
|
|
|
{
|
|
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";
|
|
} + "/";
|
|
extraConfig = ''
|
|
add_header Access-Control-Allow-Origin *;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|