This commit is contained in:
Akiyama Mizuki 2026-08-18 10:14:30 +09:00
commit 9bbceb15fd
9 changed files with 43 additions and 16 deletions

View file

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
systemd.services.cfwithoutincident = {
description = "Cloudflare Status D-Day dashboard";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
User = "imnyang";
Group = "users";
WorkingDirectory = "/home/imnyang/git/imnyang/cfwithoutincident";
Environment = [
"PORT=31774"
];
ExecStart = "${pkgs.bun}/bin/bun run src/index.ts";
Restart = "always";
RestartSec = 5;
};
path = [ pkgs.bun ];
};
}