Add hydra server
parent
d4735ff7c3
commit
0d826d1c53
|
@ -9,7 +9,8 @@
|
||||||
./git.ewanick.com.nix
|
./git.ewanick.com.nix
|
||||||
./paperless.ewanick.com.nix
|
./paperless.ewanick.com.nix
|
||||||
|
|
||||||
./fancytypist.com.nix
|
# ./fancytypist.com.nix
|
||||||
|
./hydra.fancyTypist.com.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# when in doubt, clear away the certs with
|
# when in doubt, clear away the certs with
|
||||||
|
|
|
@ -22,7 +22,7 @@ in
|
||||||
ewanick-site = {
|
ewanick-site = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "A blog powered by Emanote running solely on Markdown files.";
|
description = "A blog powered by Emanote running solely on Markdown files.";
|
||||||
path = with pkgs; [ nix git ];
|
path = with pkgs; [ nix git emanote ];
|
||||||
script = ''
|
script = ''
|
||||||
cd ${PROJECT_ROOT}
|
cd ${PROJECT_ROOT}
|
||||||
nix run github:srid/emanote --accept-flake-config \
|
nix run github:srid/emanote --accept-flake-config \
|
||||||
|
|
|
@ -35,4 +35,4 @@ pandoc:
|
||||||
photoframe-below: clear-right
|
photoframe-below: clear-right
|
||||||
|
|
||||||
page-note: text-sm text-gray-600 flex items-center justify-center my-4 italic
|
page-note: text-sm text-gray-600 flex items-center justify-center my-4 italic
|
||||||
editor-note: text-gray-500 text-sm
|
editor-note: text-gray-500 text-sm
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
let
|
||||||
|
baseUrl = "hydra.fancyTypist.com";
|
||||||
|
HOST = "localhost";
|
||||||
|
PORT = 8246;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.hydra = {
|
||||||
|
enable = true;
|
||||||
|
port = PORT;
|
||||||
|
hydraURL = "https://${HOST}:${toString PORT}";
|
||||||
|
notificationSender = "hydra@fancyTypist.com";
|
||||||
|
buildMachinesFiles = [ ];
|
||||||
|
useSubstitutes = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.caddy = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"${baseUrl}" = {
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy ${HOST}:${toString PORT}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue