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

@ -11,6 +11,7 @@ nixpkgs.lib.nixosSystem {
sops-nix.nixosModules.sops
# ./services/attic.nix
./services/caddy.nix
./services/cfwithoutincident.nix
./services/forgejo-runner.nix
./services/limbo.nix
./services/stream.nix

View file

@ -143,10 +143,6 @@ in
}
'';
virtualHosts."cache.mizuki.guru".extraConfig = ''
reverse_proxy 127.0.0.1:5000
'';
virtualHosts."paste.mizuki.guru".extraConfig = ''
reverse_proxy 10.11.8.102:11108
'';
@ -182,6 +178,10 @@ in
reverse_proxy 127.0.0.1:4321
'';
virtualHosts."cfwithoutincident.imnya.ng".extraConfig = ''
reverse_proxy 127.0.0.1:31774
'';
virtualHosts."stream.mizuki.guru".extraConfig = ''
handle /live/* {
reverse_proxy 127.0.0.1:10023

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 ];
};
}