leonard: Add amalie-mansaker-no
This commit is contained in:
parent
9eed01bb4a
commit
520a96878b
@ -54,6 +54,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
} // overrides;
|
} // overrides;
|
||||||
in {
|
in {
|
||||||
|
"amalie.mansaker.no" = publicProxy "http://leonard.home.feal.no/" { };
|
||||||
"cloud.feal.no" = publicProxy "" {
|
"cloud.feal.no" = publicProxy "" {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://challenger.home.feal.no";
|
proxyPass = "http://challenger.home.feal.no";
|
||||||
@ -62,17 +63,11 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"feal.no" = publicProxy "http://leonard.home.feal.no/" {
|
"feal.no" = publicProxy "http://leonard.home.feal.no/" { serverAliases = [ "www.feal.no" ]; };
|
||||||
serverAliases = [ "www.feal.no" ];
|
"git.feal.no" = publicProxy "http://unix:${gitea.server.HTTP_ADDR}" { default = true; };
|
||||||
};
|
|
||||||
"git.feal.no" = publicProxy "http://unix:${gitea.server.HTTP_ADDR}" {
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
"iam.feal.no" = publicProxy "http://${keycloak.http-host}:${toString keycloak.http-port}" { };
|
"iam.feal.no" = publicProxy "http://${keycloak.http-host}:${toString keycloak.http-port}" { };
|
||||||
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" { };
|
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" { };
|
||||||
"kinealbrigtsen.no" = publicProxy "http://leonard.home.feal.no/" {
|
"kinealbrigtsen.no" = publicProxy "http://leonard.home.feal.no/" { serverAliases = [ "www.kinealbrigtsen.no" ]; };
|
||||||
serverAliases = [ "www.kinealbrigtsen.no" ];
|
|
||||||
};
|
|
||||||
"wiki.wackattack.eu" = publicProxy "http://leonard.home.feal.no/" { };
|
"wiki.wackattack.eu" = publicProxy "http://leonard.home.feal.no/" { };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
./services/wiki-wackattack-eu.nix
|
./services/wiki-wackattack-eu.nix
|
||||||
./services/www-feal-no
|
./services/www-feal-no
|
||||||
./services/www-kinealbrigtsen-no.nix
|
./services/www-kinealbrigtsen-no.nix
|
||||||
|
./services/www-amalie-mansaker-no
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
|
|||||||
11
hosts/leonard/services/www-amalie-mansaker-no/default.nix
Normal file
11
hosts/leonard/services/www-amalie-mansaker-no/default.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.nginx.virtualHosts."amalie.mansaker.no" = let
|
||||||
|
siteContent = pkgs.callPackage ./site.nix { };
|
||||||
|
in {
|
||||||
|
locations = {
|
||||||
|
"/".root = siteContent;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
26
hosts/leonard/services/www-amalie-mansaker-no/site.nix
Normal file
26
hosts/leonard/services/www-amalie-mansaker-no/site.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ stdenv, fetchgit, hugo }:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "www-amalie-mansaker-no";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://git.feal.no/amalieem/amalie.mansaker.no.git";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
|
||||||
|
rev = "58265a25b37bf2286e0704e02ab3dde56a348d8b";
|
||||||
|
hash = "sha256-dPcv0AGjsWqDCWCjV2PeklBrWsIawLAccRQEYe3teOM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ hugo ];
|
||||||
|
buildPhase = ''
|
||||||
|
cp -r $src/* .
|
||||||
|
${hugo}/bin/hugo
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r public/* $out/
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user