add workout tracker service

This commit is contained in:
Joakim Repomaa
2024-08-26 10:30:06 +03:00
parent 47d18621b2
commit 87e7e2fbe4
2 changed files with 18 additions and 0 deletions

View File

@@ -37,5 +37,6 @@
./owncast.nix
./hydra.nix
./tailscale.nix
./workout-tracker.nix
];
}

17
workout-tracker.nix Normal file
View File

@@ -0,0 +1,17 @@
{ ... }:
let
fqdn = "fit.freun.dev";
port = 3322;
in
{
services.workout-tracker = {
enable = true;
inherit port;
};
services.caddy.virtualHosts = {
"${fqdn}".extraConfig = ''
reverse_proxy localhost:${toString port}
'';
};
}