Skip to content

Commit

Permalink
added webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
thilobillerbeck committed Dec 19, 2023
1 parent 21ea12c commit 6fb5ef6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions machines/bart/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ let
config.allowUnfree = true;
system = "aarch64-linux";
};
deployHookShellScript = pkgs.writeShellScript "builder.sh" ''
echo "Test"
'';
in
{
imports = [
Expand Down Expand Up @@ -128,6 +131,12 @@ in
proxyWebsockets = true;
};
};
"bart.thilo-billerbeck.com" = {
locations."/" = {
proxyPass = "http://localhost:9000/";
proxyWebsockets = true;
};
};
"zsh-sl-api.thilo-billerbeck.com" = {
enableACME = true;
forceSSL = true;
Expand Down Expand Up @@ -223,6 +232,16 @@ in
timerConfig = { OnCalendar = "*-*-* 3:00:00"; };
pruneOpts = [ "--keep-daily 5" ];
};
webhook = {
enable = true;
openFirewall = true;
hooks = {
test = {
id = "test";
execute-command = "${deployHookShellScript}";
};
};
};
};
virtualisation = {
docker = {
Expand Down

0 comments on commit 6fb5ef6

Please sign in to comment.